|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.store.AbstractStore<ByteArray,byte[],byte[]>
voldemort.store.routed.RoutedStore
voldemort.store.routed.ThreadPoolRoutedStore
@Deprecated public class ThreadPoolRoutedStore
A Store which multiplexes requests to different internal Stores
Field Summary |
---|
Fields inherited from class voldemort.store.routed.RoutedStore |
---|
failureDetector, innerStores, logger, readRepairer, repairReads, routingStrategy, storeDef, time, timeoutConfig |
Constructor Summary | |
---|---|
ThreadPoolRoutedStore(java.lang.String name,
java.util.Map<java.lang.Integer,Store<ByteArray,byte[],byte[]>> innerStores,
Cluster cluster,
StoreDefinition storeDef,
boolean repairReads,
java.util.concurrent.ExecutorService threadPool,
TimeoutConfig timeoutConfig,
FailureDetector failureDetector,
Time time)
Deprecated. Create a RoutedStoreClient |
|
ThreadPoolRoutedStore(java.lang.String name,
java.util.Map<java.lang.Integer,Store<ByteArray,byte[],byte[]>> innerStores,
Cluster cluster,
StoreDefinition storeDef,
int numberOfThreads,
boolean repairReads,
TimeoutConfig timeoutConfig,
FailureDetector failureDetector)
Deprecated. Create a RoutedStoreClient |
Method Summary | |
---|---|
boolean |
delete(ByteArray key,
Version version)
Deprecated. Delete all entries prior to the given version |
java.util.List<Versioned<byte[]>> |
get(ByteArray key,
byte[] transforms)
Deprecated. Get the value associated with the given key |
java.util.Map<ByteArray,java.util.List<Versioned<byte[]>>> |
getAll(java.lang.Iterable<ByteArray> keys,
java.util.Map<ByteArray,byte[]> transforms)
Deprecated. Get the values associated with the given keys and returns them in a Map of keys to a list of versioned values. |
java.util.List<Version> |
getVersions(ByteArray key)
Deprecated. Get the versions associated with the given key. |
void |
put(ByteArray key,
Versioned<byte[]> versioned,
byte[] transforms)
Deprecated. Associate the value with the key and version in this store |
Methods inherited from class voldemort.store.routed.RoutedStore |
---|
close, getCapability, getInnerStores, updateRoutingStrategy |
Methods inherited from class voldemort.store.AbstractStore |
---|
delete, get, getAll, getName, put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadPoolRoutedStore(java.lang.String name, java.util.Map<java.lang.Integer,Store<ByteArray,byte[],byte[]>> innerStores, Cluster cluster, StoreDefinition storeDef, int numberOfThreads, boolean repairReads, TimeoutConfig timeoutConfig, FailureDetector failureDetector)
name
- The name of the storeinnerStores
- The mapping of node to clientcluster
- The cluster metadatastoreDef
- The store definitionnumberOfThreads
- The number of threads in the threadpoolrepairReads
- Do we want to do read repairs?timeoutConfig
- The timeout configurationfailureDetector
- The failure detector implementationpublic ThreadPoolRoutedStore(java.lang.String name, java.util.Map<java.lang.Integer,Store<ByteArray,byte[],byte[]>> innerStores, Cluster cluster, StoreDefinition storeDef, boolean repairReads, java.util.concurrent.ExecutorService threadPool, TimeoutConfig timeoutConfig, FailureDetector failureDetector, Time time)
name
- The name of the storeinnerStores
- The mapping of node to clientcluster
- The cluster metadatastoreDef
- The store definitionrepairReads
- Do we want to do read repairs?threadPool
- The threadpool to usetimeoutConfig
- The timeout configurationfailureDetector
- The failure detector implementationtime
- Time instanceMethod Detail |
---|
public boolean delete(ByteArray key, Version version) throws VoldemortException
Store
delete
in interface Store<ByteArray,byte[],byte[]>
delete
in class AbstractStore<ByteArray,byte[],byte[]>
key
- The key to deleteversion
- The current value of the key
VoldemortException
public java.util.Map<ByteArray,java.util.List<Versioned<byte[]>>> getAll(java.lang.Iterable<ByteArray> keys, java.util.Map<ByteArray,byte[]> transforms) throws VoldemortException
Store
getAll
in interface Store<ByteArray,byte[],byte[]>
getAll
in class AbstractStore<ByteArray,byte[],byte[]>
keys
- The keys to check for.
VoldemortException
public java.util.List<Versioned<byte[]>> get(ByteArray key, byte[] transforms)
Store
get
in interface Store<ByteArray,byte[],byte[]>
get
in class AbstractStore<ByteArray,byte[],byte[]>
key
- The key to check for
public void put(ByteArray key, Versioned<byte[]> versioned, byte[] transforms) throws VoldemortException
Store
put
in interface Store<ByteArray,byte[],byte[]>
put
in class AbstractStore<ByteArray,byte[],byte[]>
key
- The key to useversioned
- The value to store and its version.
VoldemortException
public java.util.List<Version> getVersions(ByteArray key)
Store
getVersions
in interface Store<ByteArray,byte[],byte[]>
getVersions
in class AbstractStore<ByteArray,byte[],byte[]>
key
- The key to retrieve the versions for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |