thredds.inventory
Class DatasetCollectionFromCatalog

java.lang.Object
  extended by thredds.inventory.DatasetCollectionManager
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class thredds.inventory.DatasetCollectionManager
DatasetCollectionManager.TriggerEvent, DatasetCollectionManager.TriggerListener
 
Field Summary
 
Fields inherited from class thredds.inventory.DatasetCollectionManager
CATALOG, collectionName, dateExtractor, PROTO, RESCAN
 
Constructor Summary
DatasetCollectionFromCatalog(String collection)
           
 
Method Summary
 boolean getCatalogRef(InvCatalogRef dd, Object context)
          Gets called for each catalogRef found
 void getDataset(InvDataset ds, Object context)
          Gets called for each dataset found.
protected  boolean hasScans()
           
static void main(String[] arg)
           
protected  void scan(Map<String,MFile> map, CancelTask cancelTask)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatasetCollectionFromCatalog

public DatasetCollectionFromCatalog(String collection)
Method Detail

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 dataset
context - 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 dataset
context - 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.