Package thredds.inventory
Interface MController
-
- All Known Implementing Classes:
ControllerOS
,ControllerOS7
,ControllerS3
,ControllerZip
public interface MController
Inventory Management Controller- Since:
- Jun 25, 2009
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Iterator<MFile>
getInventoryAll(CollectionConfig mc, boolean recheck)
Returns all leaves in collection, recursing into subdirectories.Iterator<MFile>
getInventoryTop(CollectionConfig mc, boolean recheck)
Returns all leaves in top collection, not recursing into subdirectories.Iterator<MFile>
getSubdirs(CollectionConfig mc, boolean recheck)
Returns all subdirectories in top collection.
-
-
-
Method Detail
-
getInventoryAll
Iterator<MFile> getInventoryAll(CollectionConfig mc, boolean recheck)
Returns all leaves in collection, recursing into subdirectories.- Parameters:
mc
- defines the collection to scanrecheck
- if false, may use cached results. otherwise must sync with File OS- Returns:
- iterator over Mfiles, or null if collection does not exist
-
getInventoryTop
Iterator<MFile> getInventoryTop(CollectionConfig mc, boolean recheck) throws IOException
Returns all leaves in top collection, not recursing into subdirectories.- Parameters:
mc
- defines the collection to scanrecheck
- if false, may use cached results. otherwise must sync with File OS- Returns:
- iterator over Mfiles, or null if collection does not exist
- Throws:
IOException
-
getSubdirs
Iterator<MFile> getSubdirs(CollectionConfig mc, boolean recheck)
Returns all subdirectories in top collection.- Parameters:
mc
- defines the collection to scanrecheck
- if false, may use cached results. otherwise must sync with File OS- Returns:
- iterator over Mfiles, or null if collection does not exist
-
close
void close()
-
-