thredds.filesystem
Class Controller

java.lang.Object
  extended by thredds.filesystem.Controller
All Implemented Interfaces:
ControllerIF

public class Controller
extends java.lang.Object
implements ControllerIF

Class Description

Since:
Jun 25, 2009
Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from interface thredds.filesystem.ControllerIF
ControllerIF.Purge, ControllerIF.PurgePolicy, ControllerIF.SyncPolicy
 
Constructor Summary
Controller(CacheManagerOld cacheManager)
           
 
Method Summary
 void addCollection(MCollection mc)
           
 java.util.Iterator<MFile> getInventory(MCollection mc)
           
 java.util.Iterator<MFile> getInventory(java.lang.String collectionName)
           
 java.lang.Object lockCollection(java.lang.String collectionName)
           
 boolean renewLock(java.lang.Object lock)
           
 void sync(java.lang.String collectionName)
           
 void unlockCollection(java.lang.Object lock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller(CacheManagerOld cacheManager)
Method Detail

addCollection

public void addCollection(MCollection mc)
Specified by:
addCollection in interface ControllerIF

getInventory

public java.util.Iterator<MFile> getInventory(java.lang.String collectionName)
Specified by:
getInventory in interface ControllerIF

getInventory

public java.util.Iterator<MFile> getInventory(MCollection mc)
Specified by:
getInventory in interface ControllerIF

sync

public void sync(java.lang.String collectionName)
Specified by:
sync in interface ControllerIF

lockCollection

public java.lang.Object lockCollection(java.lang.String collectionName)
Specified by:
lockCollection in interface ControllerIF

unlockCollection

public void unlockCollection(java.lang.Object lock)
Specified by:
unlockCollection in interface ControllerIF

renewLock

public boolean renewLock(java.lang.Object lock)
Specified by:
renewLock in interface ControllerIF