org.alliance.core.file.blockstorage
Class CacheStorage

java.lang.Object
  extended by java.lang.Thread
      extended by org.alliance.core.file.blockstorage.BlockStorage
          extended by org.alliance.core.file.blockstorage.CacheStorage
All Implemented Interfaces:
java.lang.Runnable

public class CacheStorage
extends BlockStorage

Created by IntelliJ IDEA. User: maciek Date: 2006-feb-06 Time: 22:57:21 To change this template use File | Settings | File Templates.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int TYPE_ID
           
 
Fields inherited from class org.alliance.core.file.blockstorage.BlockStorage
core, isSequential
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CacheStorage(java.lang.String storagePath, java.lang.String completeFilePath, CoreSubsystem core)
           
 
Method Summary
 int getStorageTypeId()
           
protected  void signalFileComplete(BlockFile bf)
           
 
Methods inherited from class org.alliance.core.file.blockstorage.BlockStorage
contains, containsBlock, getBlockFile, getBlockMaskFor, getById, getCompleteFilePath, getCore, getFD, getStoragePath, isRecentlyDownloaded, isSequential, removePermanently, rootHashes, run, saveSlice, shutdown, waitForUnfinishedTasks
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ID

public static final int TYPE_ID
See Also:
Constant Field Values
Constructor Detail

CacheStorage

public CacheStorage(java.lang.String storagePath,
                    java.lang.String completeFilePath,
                    CoreSubsystem core)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

signalFileComplete

protected void signalFileComplete(BlockFile bf)
Specified by:
signalFileComplete in class BlockStorage

getStorageTypeId

public int getStorageTypeId()
Specified by:
getStorageTypeId in class BlockStorage