|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.kernel.ac.PersistentStore
public abstract class PersistentStore
Defines an abstract interface to acces persistent storage. A PersistentStore allows (key, value) pairs to be stored on persistent storage. Currently, only regular files are used as the actual persistent storage.
| Constructor Summary | |
|---|---|
PersistentStore()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Close the persistent store. |
abstract void |
delete(java.lang.String key)
Deletes a (key, value) pair from the persistent storage. |
abstract boolean |
exists(java.lang.String key)
Checks whether a key is stored in the persistent storage. |
abstract byte[] |
get(java.lang.String key)
Retrieves value associated with key from the persistent storage. |
abstract byte[] |
get(java.lang.String key,
int offset,
int length)
Retrieves part of the value associated with key from the persistent storage. |
static PersistentStore |
getInstance()
|
abstract void |
put(java.lang.String key,
byte[] value)
Stores (key, value) pair in the persistent storage. |
abstract void |
put(java.lang.String key,
byte[] value,
int length)
Stores (key, value) pair in the persistent storage. |
abstract void |
put(java.lang.String key,
int offset,
byte[] value,
int length)
Overwrite any (key, value) pair in the persistent storage by overwriting the stored value starting at offset with the byte array given as parameter. |
abstract void |
put(java.lang.String key,
int offset,
byte[] value,
int length,
boolean sync)
Overwrite any (key, value) pair in the persistent storage by overwriting the stored value starting at offset with the byte array given as parameter. |
static void |
setup(java.io.File directory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentStore()
| Method Detail |
|---|
public static void setup(java.io.File directory)
public static PersistentStore getInstance()
throws InputOutputException
InputOutputException
public abstract void put(java.lang.String key,
byte[] value)
throws InputOutputException
InputOutputException
public abstract void put(java.lang.String key,
byte[] value,
int length)
throws InputOutputException
InputOutputException
public abstract void put(java.lang.String key,
int offset,
byte[] value,
int length)
throws InputOutputException
InputOutputException
public abstract void put(java.lang.String key,
int offset,
byte[] value,
int length,
boolean sync)
throws InputOutputException
InputOutputException
public abstract byte[] get(java.lang.String key)
throws InputOutputException
InputOutputException
public abstract byte[] get(java.lang.String key,
int offset,
int length)
throws InputOutputException
InputOutputException
public abstract void delete(java.lang.String key)
throws InputOutputException
InputOutputException
public abstract boolean exists(java.lang.String key)
throws InputOutputException
InputOutputException
public abstract void close()
throws InputOutputException
InputOutputException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||