Package thredds.filesystem
Class ControllerOS
- java.lang.Object
-
- thredds.filesystem.ControllerOS
-
- All Implemented Interfaces:
MController
- Direct Known Subclasses:
ControllerZip
@ThreadSafe public class ControllerOS extends Object implements MController
Implements an MController without caching, reading from OS each time. recheck is ignored (always true)- Since:
- Jun 25, 2009
-
-
Constructor Summary
Constructors Constructor Description ControllerOS()
-
Method Summary
All Methods Instance Methods Concrete 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
public Iterator<MFile> getInventoryAll(CollectionConfig mc, boolean recheck)
Description copied from interface:MController
Returns all leaves in collection, recursing into subdirectories.- Specified by:
getInventoryAll
in interfaceMController
- 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
public Iterator<MFile> getInventoryTop(CollectionConfig mc, boolean recheck)
Description copied from interface:MController
Returns all leaves in top collection, not recursing into subdirectories.- Specified by:
getInventoryTop
in interfaceMController
- 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
-
getSubdirs
public Iterator<MFile> getSubdirs(CollectionConfig mc, boolean recheck)
Description copied from interface:MController
Returns all subdirectories in top collection.- Specified by:
getSubdirs
in interfaceMController
- 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
public void close()
- Specified by:
close
in interfaceMController
-
-