com.caucho.distcache.cluster
Class ValueFileStore

java.lang.Object
  extended by com.caucho.distcache.cluster.ValueFileStore

public class ValueFileStore
extends java.lang.Object

Manages the backing for the file store.


Constructor Summary
ValueFileStore(Path path, java.lang.String tableName)
           
 
Method Summary
 void add(byte[] digest, java.io.InputStream value)
           
 java.sql.Blob get(byte[] digest)
           
 Path getPath()
          Returns the path to the directory.
 java.lang.String getTableName()
          Sets the table name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueFileStore

public ValueFileStore(Path path,
                      java.lang.String tableName)
Method Detail

getPath

public Path getPath()
Returns the path to the directory.


getTableName

public java.lang.String getTableName()
Sets the table name


add

public void add(byte[] digest,
                java.io.InputStream value)

get

public java.sql.Blob get(byte[] digest)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object