public class FileContentStore extends Object implements ContentStoreIF
| Modifier and Type | Field and Description |
|---|---|
static int |
FILES_PER_DIRECTORY |
static int |
KEY_BLOCK_SIZE |
static int |
MAX_SPINS |
static int |
SPIN_TIMEOUT |
| Constructor and Description |
|---|
FileContentStore(File store_root) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(ContentInputStream data)
INTERNAL: Creates an entry for the specified data value.
|
int |
add(InputStream data,
int length)
INTERNAL: Creates an entry for the specified data value.
|
void |
close()
INTERNAL: Closes the content store.
|
boolean |
containsKey(int key)
INTERNAL: Returns true if the content store contains an entry with
the specified key.
|
ContentInputStream |
get(int key)
INTERNAL: Gets the data value associated with the specified key.
|
boolean |
remove(int key)
INTERNAL: Removes the entry associated with the key.
|
public static final int FILES_PER_DIRECTORY
public static final int KEY_BLOCK_SIZE
public static final int MAX_SPINS
public static final int SPIN_TIMEOUT
public FileContentStore(File store_root) throws ContentStoreException
ContentStoreExceptionpublic boolean containsKey(int key)
throws ContentStoreException
ContentStoreIFcontainsKey in interface ContentStoreIFContentStoreExceptionpublic ContentInputStream get(int key) throws ContentStoreException
ContentStoreIFget in interface ContentStoreIFContentStoreExceptionpublic int add(ContentInputStream data) throws ContentStoreException
ContentStoreIFadd in interface ContentStoreIFContentStoreExceptionpublic int add(InputStream data, int length) throws ContentStoreException
ContentStoreIFadd in interface ContentStoreIFContentStoreExceptionpublic boolean remove(int key)
throws ContentStoreException
ContentStoreIFremove in interface ContentStoreIFContentStoreExceptionpublic void close()
throws ContentStoreException
ContentStoreIFclose in interface ContentStoreIFContentStoreException