thredds.inventory
Class DatasetCollectionFromCatalog
java.lang.Object
thredds.inventory.DatasetCollectionManager
thredds.inventory.DatasetCollectionFromCatalog
- All Implemented Interfaces:
- CatalogCrawler.Listener, CollectionManager
@ThreadSafe
public class DatasetCollectionFromCatalog
- extends DatasetCollectionManager
- implements CatalogCrawler.Listener
CollectionManager of datasets from a catalog.
- Since:
- Jan 14, 2010
- Author:
- caron
Methods inherited from class thredds.inventory.DatasetCollectionManager |
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, toString |
DatasetCollectionFromCatalog
public DatasetCollectionFromCatalog(String collection)
hasScans
protected boolean hasScans()
- Overrides:
hasScans
in class DatasetCollectionManager
scan
protected void scan(Map<String,MFile> map,
CancelTask cancelTask)
throws IOException
- Overrides:
scan
in class DatasetCollectionManager
- Throws:
IOException
getDataset
public void getDataset(InvDataset ds,
Object context)
- Description copied from interface:
CatalogCrawler.Listener
- Gets called for each dataset found.
- Specified by:
getDataset
in interface CatalogCrawler.Listener
- Parameters:
ds
- the datasetcontext
- caller can pass this object in (used for thread safety)
getCatalogRef
public boolean getCatalogRef(InvCatalogRef dd,
Object context)
- Description copied from interface:
CatalogCrawler.Listener
- Gets called for each catalogRef found
- Specified by:
getCatalogRef
in interface CatalogCrawler.Listener
- Parameters:
dd
- the datasetcontext
- caller can pass this object in (used for thread safety)
- Returns:
- true to process, false to skip
main
public static void main(String[] arg)
throws IOException
- Throws:
IOException
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.