ncsa.tools.trebuchet.core.cache
Class ListCache

java.lang.Object
  extended byncsa.tools.trebuchet.core.cache.OperationCache
      extended byncsa.tools.trebuchet.core.cache.ListCache
Direct Known Subclasses:
IndexedListCache

public class ListCache
extends OperationCache


Constructor Summary
ListCache(CacheHeader connection, java.lang.String id)
           
ListCache(java.io.File cacheFile, boolean readOnly)
           
 
Method Summary
 OperationCache getReadOnlyInstance()
           
 java.lang.String[] getRecaptureExcludes()
           
 void markScanCompleted()
          Sets the cache header state to SCAN_COMPLETE.
 
Methods inherited from class ncsa.tools.trebuchet.core.cache.OperationCache
addEntry, addListener, close, currentEntry, delete, getCacheFile, getCacheId, getEntry, getHeader, getNextEntry, getPreviousEntry, markOperationDone, open, print, removeListener, reset, reset, resetToEnd, resetToLastEntry, resetToNthEntry, scanningDirectory, setBufferSize, storeConfiguration, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListCache

public ListCache(CacheHeader connection,
                 java.lang.String id)
          throws java.io.IOException

ListCache

public ListCache(java.io.File cacheFile,
                 boolean readOnly)
          throws java.io.IOException
Method Detail

getReadOnlyInstance

public OperationCache getReadOnlyInstance()
                                   throws java.io.IOException
Specified by:
getReadOnlyInstance in class OperationCache
Throws:
java.io.IOException

getRecaptureExcludes

public java.lang.String[] getRecaptureExcludes()
                                        throws java.io.IOException
Returns:
A list of excludes to be used in a recapture list operation.
Throws:
java.io.IOException

markScanCompleted

public void markScanCompleted()
                       throws java.io.IOException
Sets the cache header state to SCAN_COMPLETE.

Throws:
java.io.IOException