|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.DelegatingStore<K,V,T>
voldemort.store.logging.LoggingStore<K,V,T>
public class LoggingStore<K,V,T>
A store wrapper that handles debug logging.
| Constructor Summary | |
|---|---|
LoggingStore(Store<K,V,T> store)
Create a logging store that wraps the given store |
|
LoggingStore(Store<K,V,T> store,
java.lang.String instance,
Time time)
Create a logging store that wraps the given store |
|
LoggingStore(Store<K,V,T> store,
Time time)
Create a logging store that wraps the given store |
|
| Method Summary | |
|---|---|
void |
close()
Close the store. |
boolean |
delete(K key,
Version version)
Delete all entries prior to the given version |
java.util.List<Versioned<V>> |
get(K key,
T transform)
Get the value associated with the given key |
java.lang.Object |
getCapability(StoreCapabilityType capability)
Get some capability of the store. |
void |
put(K key,
Versioned<V> value,
T transform)
Associate the value with the key and version in this store |
| Methods inherited from class voldemort.store.DelegatingStore |
|---|
getAll, getInnerStore, getName, getVersions, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingStore(Store<K,V,T> store)
store - The store to wrap
public LoggingStore(Store<K,V,T> store,
Time time)
store - The store to wraptime - The time implementation to use for computing ellapsed time
public LoggingStore(Store<K,V,T> store,
java.lang.String instance,
Time time)
store - The store to wrapinstance - The instance name to display in logging messagestime - The time implementation to use for computing ellapsed time| Method Detail |
|---|
public void close()
throws VoldemortException
Store
close in interface Store<K,V,T>close in class DelegatingStore<K,V,T>VoldemortException - If closing fails.
public boolean delete(K key,
Version version)
throws VoldemortException
Store
delete in interface Store<K,V,T>delete in class DelegatingStore<K,V,T>key - The key to deleteversion - The current value of the key
VoldemortException
public java.util.List<Versioned<V>> get(K key,
T transform)
throws VoldemortException
Store
get in interface Store<K,V,T>get in class DelegatingStore<K,V,T>key - The key to check for
VoldemortException
public void put(K key,
Versioned<V> value,
T transform)
throws VoldemortException
Store
put in interface Store<K,V,T>put in class DelegatingStore<K,V,T>key - The key to usevalue - The value to store and its version.
VoldemortExceptionpublic java.lang.Object getCapability(StoreCapabilityType capability)
Store
getCapability in interface Store<K,V,T>getCapability in class DelegatingStore<K,V,T>capability - The capability type to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||