@ThreadSafe public class DatasetCollectionFromCatalog extends DatasetCollectionManager implements CatalogCrawler.Listener
DatasetCollectionManager.TriggerEvent, DatasetCollectionManager.TriggerListenerCATALOG, collectionName, dateExtractor, PROTO, RESCAN| Constructor and Description |
|---|
DatasetCollectionFromCatalog(java.lang.String collection) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCatalogRef(InvCatalogRef dd,
java.lang.Object context)
Gets called for each catalogRef found
|
void |
getDataset(InvDataset ds,
java.lang.Object context)
Gets called for each dataset found.
|
protected boolean |
hasScans() |
static void |
main(java.lang.String[] arg) |
protected void |
scan(java.util.Map<java.lang.String,MFile> map,
CancelTask cancelTask) |
addDirectoryScan, addEventListener, close, enableMetadataManager, extractRunDate, getCollectionName, getCollectionSpecParser, getFiles, getLastChanged, getLastScanned, getMetadata, getOlderThanFilterInSecs, getProtoIndex, getRecheck, getRoot, hasDateExtractor, isRescanNeeded, open, putMetadata, removeEventListener, rescan, rescanIfNeeded, resetProto, scan, setController, setDateExtractor, toStringpublic DatasetCollectionFromCatalog(java.lang.String collection)
protected boolean hasScans()
hasScans in class DatasetCollectionManagerprotected void scan(java.util.Map<java.lang.String,MFile> map, CancelTask cancelTask) throws java.io.IOException
scan in class DatasetCollectionManagerjava.io.IOExceptionpublic void getDataset(InvDataset ds, java.lang.Object context)
CatalogCrawler.ListenergetDataset in interface CatalogCrawler.Listenerds - the datasetcontext - caller can pass this object in (used for thread safety)public boolean getCatalogRef(InvCatalogRef dd, java.lang.Object context)
CatalogCrawler.ListenergetCatalogRef in interface CatalogCrawler.Listenerdd - the datasetcontext - caller can pass this object in (used for thread safety)public static void main(java.lang.String[] arg)
throws java.io.IOException
java.io.IOException