com.voidsearch.voidbase.apps.cache.module.distributed
Class DistributedPersistenceStore

java.lang.Object
  extended by com.voidsearch.voidbase.apps.cache.VoidBaseCache
      extended by com.voidsearch.voidbase.apps.cache.module.distributed.DistributedPersistenceStore
All Implemented Interfaces:
VoidBaseCacheHandler, java.lang.Cloneable

public class DistributedPersistenceStore
extends VoidBaseCache


Field Summary
protected static DistributedPersistenceStore instance
           
 
Fields inherited from class com.voidsearch.voidbase.apps.cache.VoidBaseCache
config, logger, name, operations
 
Constructor Summary
DistributedPersistenceStore()
          Creates a new instance of a DistributedPersistenceStore
 
Method Summary
protected  void delete(java.lang.String key)
           
protected  void flush()
           
protected  CacheValue get(java.lang.String key)
           
static DistributedPersistenceStore getInstance()
          Creates a new instance of a DistributedPersistenceStore
 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)
           
protected  void put(java.lang.String key, java.lang.String value)
           
 
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

instance

protected static DistributedPersistenceStore instance
Constructor Detail

DistributedPersistenceStore

public DistributedPersistenceStore()
                            throws CacheException
Creates a new instance of a DistributedPersistenceStore

Throws:
CacheException
Method Detail

getInstance

public static DistributedPersistenceStore getInstance()
                                               throws CacheException
Creates a new instance of a DistributedPersistenceStore

Returns:
a DistributedPersistenceStore instance
Throws:
CacheException

process

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
Processes cache requests

Parameters:
method -
route -
params -
key -
value -
Returns:
a result of cache request operation
Throws:
CacheException

process

public CacheValue process(java.lang.String method,
                          java.lang.String name,
                          java.lang.String key,
                          java.lang.String value)
                   throws CacheException
Throws:
CacheException

put

protected void put(java.lang.String key,
                   java.lang.String value)
            throws CacheException
Throws:
CacheException

get

protected CacheValue get(java.lang.String key)
                  throws CacheException
Throws:
CacheException

delete

protected void delete(java.lang.String key)
               throws CacheException
Throws:
CacheException

flush

protected void flush()
              throws CacheException
Throws:
CacheException


Copyright © 2009. All Rights Reserved.