org.dasein.persist
Class RiakCache<T extends org.dasein.util.CachedItem>
java.lang.Object
org.dasein.persist.PersistentCache<T>
org.dasein.persist.RiakCache<T>
public final class RiakCache<T extends org.dasein.util.CachedItem>
- extends PersistentCache<T>
|
Field Summary |
static org.apache.log4j.Logger |
logger
|
| Methods inherited from class org.dasein.persist.PersistentCache |
addJoinEntity, count, count, find, getCache, getCache, getJoin, getJoins, getKeyValue, getKeyValue, getKeyValue, getKeyValues, getNewKeyValue, getPrimaryKey, getPrimaryKeyField, getSecondaryKeys, getTarget, init, initBase, list, matchKeys |
logger
public static final org.apache.log4j.Logger logger
RiakCache
public RiakCache()
create
public T create(Transaction xaction,
Map<String,Object> state)
throws PersistenceException
- Specified by:
create in class PersistentCache<T extends org.dasein.util.CachedItem>
- Throws:
PersistenceException
find
public Collection<T> find(SearchTerm[] terms,
org.dasein.util.JiteratorFilter<T> filter,
Boolean orderDesc,
String... orderFields)
throws PersistenceException
- Specified by:
find in class PersistentCache<T extends org.dasein.util.CachedItem>
- Throws:
PersistenceException
get
public T get(Object valueOfPrimaryKey)
throws PersistenceException
- Specified by:
get in class PersistentCache<T extends org.dasein.util.CachedItem>
- Throws:
PersistenceException
list
public Collection<T> list()
throws PersistenceException
- Specified by:
list in class PersistentCache<T extends org.dasein.util.CachedItem>
- Throws:
PersistenceException
remove
public void remove(Transaction xaction,
T item)
throws PersistenceException
- Specified by:
remove in class PersistentCache<T extends org.dasein.util.CachedItem>
- Throws:
PersistenceException
toString
public String toString()
- Overrides:
toString in class Object
update
public void update(Transaction xaction,
T item,
Map<String,Object> state)
throws PersistenceException
- Specified by:
update in class PersistentCache<T extends org.dasein.util.CachedItem>
- Throws:
PersistenceException
Copyright © 2011 enStratus Networks LLC. All Rights Reserved.