public class CollectionManagerSingleFile extends CollectionManagerAbstract
CollectionManager.ChangeChecker, CollectionManager.Force, CollectionManager.TriggerEvent, CollectionManager.TriggerListener, CollectionManager.TriggerTypeauxInfo, changeChecker, collectionName, protoChoice, recheck| Constructor and Description |
|---|
CollectionManagerSingleFile(MFile file) |
| Modifier and Type | Method and Description |
|---|---|
CalendarDate |
extractRunDate(MFile mfile)
Use the date extractor to extract the date from the filename.
|
Iterable<MFile> |
getFiles()
Get the current collection of MFile.
|
long |
getLastScanned()
Get the last time scanned
|
String |
getRoot()
Get common root directory of all MFiles in the collection - may be null
|
CalendarDate |
getStartCollection()
The starting date of the collection.
|
boolean |
hasDateExtractor()
Does this CollectionManager have the ability to extract a date from the MFile ?
|
boolean |
isScanNeeded()
Compute whether rescan is needed, based on getRecheck(), and the LastScanned value.
|
boolean |
scan(boolean sendEvent)
Scan the collection.
|
boolean |
scanIfNeeded()
If isScanNeeded(), do a scan.
|
addEventListener, close, createListenerManager, deleteOld, enableMetadataManager, getAuxInfo, getCollectionName, getFilenames, getLatestFile, getMetadata, getOlderThanFilterInMSecs, getProtoIndex, getRecheck, isStatic, putAuxInfo, putMetadata, removeEventListener, resetProto, setChangeChecker, setStatic, updateNocheckpublic CollectionManagerSingleFile(MFile file)
public String getRoot()
CollectionManagerpublic long getLastScanned()
CollectionManagerpublic boolean isScanNeeded()
CollectionManagerpublic boolean scanIfNeeded()
throws IOException
CollectionManagerIOException - on io errorpublic boolean scan(boolean sendEvent)
throws IOException
CollectionManagerIOException - on I/O errorpublic Iterable<MFile> getFiles()
CollectionManagerpublic CalendarDate extractRunDate(MFile mfile)
CollectionManagermfile - extract from herepublic boolean hasDateExtractor()
CollectionManagerpublic CalendarDate getStartCollection()
CollectionManagerCopyright © 1999-2012 UCAR/Unidata. All Rights Reserved.