|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ncml.DatasetCollectionManager
public class DatasetCollectionManager
Manage a list of Scanners that find Files (actually finds CrawlableDataset). Tracks when they need to be rescanned.
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
DatasetCollectionManager(java.lang.String recheckS)
|
|
| Method Summary | |
|---|---|
void |
addDirectoryScan(Scanner scan)
|
java.util.Collection<ucar.nc2.ncml.MyCrawlableDataset> |
getFiles()
Get the current collection of MyCrawlableDataset, since last scan or rescan. |
long |
getLastScanned()
Get the last time scanned |
TimeUnit |
getRecheck()
Get how often to rescan |
boolean |
rescan()
Rescan directories. |
void |
scan(CancelTask cancelTask)
Scan the directory(ies) and create MyCrawlableDataset objects. |
boolean |
timeToRescan()
Compute if rescan is needed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.slf4j.Logger logger
| Constructor Detail |
|---|
public DatasetCollectionManager(java.lang.String recheckS)
| Method Detail |
|---|
public void addDirectoryScan(Scanner scan)
public void scan(CancelTask cancelTask)
throws java.io.IOException
cancelTask - allow user to cancel
java.io.IOException - if io errorpublic boolean timeToRescan()
public boolean rescan()
throws java.io.IOException
java.io.IOException - on I/O errorpublic TimeUnit getRecheck()
public long getLastScanned()
public java.util.Collection<ucar.nc2.ncml.MyCrawlableDataset> getFiles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||