|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.store.AbstractStore<K,V,T>
voldemort.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(CompositeVoldemortRequest<K,V> request)
Delete all entries prior to the given version |
boolean |
delete(K key,
Version version)
Delete all entries prior to the given version |
java.util.List<Versioned<V>> |
get(CompositeVoldemortRequest<K,V> request)
Get the value associated with the given key |
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(CompositeVoldemortRequest<K,V> request)
Associate the value with the key and version in this 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, getAll, getInnerStore, getVersions, toString |
Methods inherited from class voldemort.store.AbstractStore |
---|
getName |
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 wrappublic LoggingStore(Store<K,V,T> store, Time time)
store
- The store to wraptime
- The time implementation to use for computing ellapsed timepublic 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 timeMethod 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.
VoldemortException
public 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
public java.util.List<Versioned<V>> get(CompositeVoldemortRequest<K,V> request) throws VoldemortException
Store
get
in interface Store<K,V,T>
get
in class DelegatingStore<K,V,T>
request
- Contains the key to check for and associated transforms
VoldemortException
public void put(CompositeVoldemortRequest<K,V> request) throws VoldemortException
Store
put
in interface Store<K,V,T>
put
in class DelegatingStore<K,V,T>
request
- Contains the key to use along with the value and version
to use.
VoldemortException
public boolean delete(CompositeVoldemortRequest<K,V> request) throws VoldemortException
Store
delete
in interface Store<K,V,T>
delete
in class DelegatingStore<K,V,T>
request
- Contains the key to delete and current version of the key
VoldemortException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |