|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.client.DefaultStoreClient<K,V>
voldemort.rest.coordinator.DynamicTimeoutStoreClient<K,V>
K
- Type of the KeyV
- Type of the Valuepublic class DynamicTimeoutStoreClient<K,V>
A special store client to invoke Voldemort operations with the following new features: 1) Per call timeout facility 2) Ability to disable resolution per call TODO: Merge this with DefaultStoreClient eventually.
Field Summary |
---|
Fields inherited from class voldemort.client.DefaultStoreClient |
---|
beforeRebootstrapCallback, metadataRefreshAttempts, resolver, store, storeFactory, storeName |
Constructor Summary | |
---|---|
DynamicTimeoutStoreClient(Store<K,V,java.lang.Object> customStore)
Dummy constructor for Unit test purposes |
|
DynamicTimeoutStoreClient(java.lang.String storeName,
StoreClientFactory storeFactory,
int maxMetadataRefreshAttempts,
java.lang.String storesXml,
java.lang.String clusterXml)
|
Method Summary | |
---|---|
void |
bootStrap(java.lang.String customClusterXml,
java.lang.String customStoresXml)
|
boolean |
deleteWithCustomTimeout(CompositeVoldemortRequest<K,V> deleteRequestObject)
Performs a delete operation with the specified composite request object |
java.util.Map<K,java.util.List<Versioned<V>>> |
getAllWithCustomTimeout(CompositeVoldemortRequest<K,V> requestWrapper)
Performs a get all operation with the specified composite request object |
protected java.lang.String |
getKeysHexString(java.lang.Iterable<ByteArray> keys)
|
java.lang.String |
getStoreName()
|
java.util.List<Versioned<V>> |
getWithCustomTimeout(CompositeVoldemortRequest<K,V> requestWrapper)
Performs a get operation with the specified composite request object |
Version |
putVersionedWithCustomTimeout(CompositeVoldemortRequest<K,V> requestWrapper)
Performs a Versioned put operation with the specified composite request object |
Version |
putWithCustomTimeout(CompositeVoldemortRequest<K,V> requestWrapper)
Performs a put operation with the specified composite request object |
Methods inherited from class voldemort.client.DefaultStoreClient |
---|
applyUpdate, applyUpdate, bootStrap, delete, delete, get, get, get, get, getAll, getAll, getItemOrThrow, getResponsibleNodes, getValue, getValue, getVersion, getVersions, put, put, put, put, putIfNotObsolete, setBeforeRebootstrapCallback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicTimeoutStoreClient(java.lang.String storeName, StoreClientFactory storeFactory, int maxMetadataRefreshAttempts, java.lang.String storesXml, java.lang.String clusterXml)
storeName
- Name of the store this client connects tostoreFactory
- Reference to the factory used to create this clientmaxMetadataRefreshAttempts
- Number of retries to retrieve the statestoresXml
- The storesXml used during bootstrapclusterXml
- The clusterXml used during bootstrappublic DynamicTimeoutStoreClient(Store<K,V,java.lang.Object> customStore)
customStore
- A custom store object to use for performing the
operationsMethod Detail |
---|
public void bootStrap(java.lang.String customClusterXml, java.lang.String customStoresXml)
public java.util.List<Versioned<V>> getWithCustomTimeout(CompositeVoldemortRequest<K,V> requestWrapper)
requestWrapper
- A composite request object containing the key (and
/ or default value) and timeout.
public Version putWithCustomTimeout(CompositeVoldemortRequest<K,V> requestWrapper)
requestWrapper
- A composite request object containing the key and
value
public Version putVersionedWithCustomTimeout(CompositeVoldemortRequest<K,V> requestWrapper) throws ObsoleteVersionException
requestWrapper
- Composite request object containing the key and the
versioned object
ObsoleteVersionException
public java.util.Map<K,java.util.List<Versioned<V>>> getAllWithCustomTimeout(CompositeVoldemortRequest<K,V> requestWrapper)
requestWrapper
- Composite request object containing a reference to
the Iterable keys
public boolean deleteWithCustomTimeout(CompositeVoldemortRequest<K,V> deleteRequestObject)
deleteRequestObject
- Composite request object containing the key to
delete
public java.lang.String getStoreName()
protected java.lang.String getKeysHexString(java.lang.Iterable<ByteArray> keys)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |