@ThreadSafe public class CollectionManagerCatalog extends CollectionManagerAbstract implements CatalogCrawler.Listener
CollectionAbstract.DateSorter, CollectionAbstract.MyStreamFilterCollectionManager.ChangeChecker, CollectionManager.TriggerEvent, CollectionManager.TriggerListenerauxInfo, CATALOG, collectionName, dateExtractor, DIR, FILE, GLOB, lastModified, LIST, logger, protoChoice, root, sfilter, startCollection| Constructor and Description | 
|---|
| CollectionManagerCatalog(java.lang.String collectionName,
                        java.lang.String collectionSpec,
                        java.lang.String olderThan,
                        java.util.Formatter errlog) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | getDataset(Dataset ds,
          java.lang.Object context)Gets called for each dataset found. | 
| java.lang.Iterable<MFile> | getFilesSorted()Get the current collection of MFile. | 
| long | getLastChanged()Get the last time the collection changed | 
| long | getLastScanned()Get the last time scanned | 
| java.lang.String | getRoot()Get common root directory of all MFiles in the collection - may be null | 
| boolean | isScanNeeded()Compute whether rescan is needed, based on getRecheck(), and the LastScanned value. | 
| boolean | scan(boolean sendEvent)Scan the collection. | 
addEventListener, close, getFileIterator, getRecheck, isStatic, open, removeEventListener, scanIfNeeded, setStaticcleanName, extractDate, getAuxInfo, getCollectionName, getFilenames, getIndexFilename, getLastModified, getLatestFile, getPartitionDate, getProtoIndex, hasDateExtractor, makeFileListSorted, parseOlderThanString, putAuxInfo, setDateExtractor, setRoot, setStreamFilterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitextractDate, getAuxInfo, getCollectionName, getFilenames, getIndexFilename, getLastModified, getLatestFile, getPartitionDate, getProtoIndex, hasDateExtractor, putAuxInfopublic CollectionManagerCatalog(java.lang.String collectionName,
                                java.lang.String collectionSpec,
                                java.lang.String olderThan,
                                java.util.Formatter errlog)
public java.lang.String getRoot()
MCollectiongetRoot in interface MCollectiongetRoot in class CollectionAbstractpublic long getLastScanned()
CollectionManagergetLastScanned in interface CollectionManagerpublic long getLastChanged()
CollectionManagergetLastChanged in interface CollectionManagerpublic boolean isScanNeeded()
CollectionManagerisScanNeeded in interface CollectionManagerpublic boolean scan(boolean sendEvent)
             throws java.io.IOException
CollectionManagerscan in interface CollectionManagerjava.io.IOException - on I/O errorpublic java.lang.Iterable<MFile> getFilesSorted()
MCollectiongetFilesSorted in interface MCollectionpublic void getDataset(Dataset ds, java.lang.Object context)
CatalogCrawler.ListenergetDataset in interface CatalogCrawler.Listenerds - the datasetcontext - object passed into crawl() by the caller