ncsa.tools.trebuchet.core.operations
Class CacheBasedOperation

java.lang.Object
  extended byncsa.tools.trebuchet.core.operations.Operation
      extended byncsa.tools.trebuchet.core.operations.CacheBasedOperation
All Implemented Interfaces:
ICacheAccessor, ICacheBasedOperation, IConfigurable, IOperation, java.lang.Runnable, Stoppable
Direct Known Subclasses:
Copy, Delete, Mkdir, ScannedInputOperation, Touch

public abstract class CacheBasedOperation
extends Operation
implements ICacheBasedOperation


Constructor Summary
CacheBasedOperation()
           
 
Method Summary
 void cleanup()
           
 java.io.File getCacheFile()
           
 OperationCache getReadOnlyCacheInstance()
           
 void haltInternal()
           
 void setCache(OperationCache cache)
           
 void setCopyCache(java.lang.String cacheFile)
           
 void setListCache(java.lang.String cacheFile)
           
 void storeConfiguration(TrebuchetConfiguration configuration)
           
 
Methods inherited from class ncsa.tools.trebuchet.core.operations.Operation
addListener, getOperationError, halt, initialize, removeListener, run, setOverrideTargets
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ncsa.tools.trebuchet.core.IOperation
addListener, removeListener
 
Methods inherited from interface ncsa.tools.trebuchet.core.IConfigurable
initialize
 
Methods inherited from interface java.lang.Runnable
run
 
Methods inherited from interface ncsa.tools.common.Stoppable
halt
 

Constructor Detail

CacheBasedOperation

public CacheBasedOperation()
Method Detail

haltInternal

public void haltInternal()

cleanup

public void cleanup()
Specified by:
cleanup in interface IOperation

getReadOnlyCacheInstance

public OperationCache getReadOnlyCacheInstance()
                                        throws java.io.IOException
Specified by:
getReadOnlyCacheInstance in interface ICacheBasedOperation
Throws:
java.io.IOException

getCacheFile

public java.io.File getCacheFile()
                          throws java.io.IOException
Throws:
java.io.IOException

storeConfiguration

public void storeConfiguration(TrebuchetConfiguration configuration)
                        throws java.io.IOException
Specified by:
storeConfiguration in interface ICacheBasedOperation
Throws:
java.io.IOException

setCache

public void setCache(OperationCache cache)
Specified by:
setCache in interface ICacheAccessor

setListCache

public void setListCache(java.lang.String cacheFile)
Specified by:
setListCache in interface ICacheBasedOperation

setCopyCache

public void setCopyCache(java.lang.String cacheFile)
Specified by:
setCopyCache in interface ICacheBasedOperation