|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.voidsearch.voidbase.apps.cache.VoidBaseCache
com.voidsearch.voidbase.apps.cache.module.messages.MessagePersistenceStore
public class MessagePersistenceStore
MessagePersistenceStore implementation of VoidBaseCache. This is a simple String key/value store on top of a BerkeleyDB.
| Field Summary | |
|---|---|
protected static java.lang.String |
DEFAULT_STORE_PATH
|
protected static MessagePersistenceStore |
instance
|
protected static java.lang.String |
STORE
|
| Fields inherited from class com.voidsearch.voidbase.apps.cache.VoidBaseCache |
|---|
config, logger, name, operations |
| Constructor Summary | |
|---|---|
MessagePersistenceStore()
Creates a new instance of a MessagePersistenceStore |
|
| Method Summary | |
|---|---|
void |
delete(java.lang.String key)
Deletes a key from a messages store |
void |
flush()
Flushes a messages store |
CacheValue |
get(java.lang.String key)
Returns value from a messages store |
static MessagePersistenceStore |
getInstance()
Creates a new instance of a MessagePersistenceStore |
protected void |
initializeStore()
Initializes BDB store for message persistence |
CacheValue |
process(java.lang.String method,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
Processes cache requests |
CacheValue |
process(java.lang.String method,
java.lang.String name,
java.lang.String key,
java.lang.String value)
|
void |
put(java.lang.String key,
java.lang.String value)
Puts a key/value pair in messages store |
| Methods inherited from class com.voidsearch.voidbase.apps.cache.VoidBaseCache |
|---|
clone, getLockType, initialize, isRegistered |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static MessagePersistenceStore instance
protected static final java.lang.String STORE
protected static final java.lang.String DEFAULT_STORE_PATH
| Constructor Detail |
|---|
public MessagePersistenceStore()
throws CacheException
CacheException| Method Detail |
|---|
public static MessagePersistenceStore getInstance()
throws CacheException
CacheException
protected void initializeStore()
throws CacheException
CacheException
public CacheValue process(java.lang.String method,
java.util.List<java.lang.String> route,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String key,
java.lang.String value)
throws CacheException
method - route - params - key - value -
CacheException
public CacheValue process(java.lang.String method,
java.lang.String name,
java.lang.String key,
java.lang.String value)
throws CacheException
method - name - key - value -
CacheException
public void put(java.lang.String key,
java.lang.String value)
throws CacheException
key - value -
CacheException
public CacheValue get(java.lang.String key)
throws CacheException
key -
CacheException
public void delete(java.lang.String key)
throws CacheException
key -
CacheException
public void flush()
throws CacheException
CacheException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||