voldemort.client
Class ZenStoreClient<K,V>
java.lang.Object
voldemort.client.DefaultStoreClient<K,V>
voldemort.client.ZenStoreClient<K,V>
- Type Parameters:
K
- The key typeV
- The value type
- All Implemented Interfaces:
- StoreClient<K,V>
public class ZenStoreClient<K,V>
- extends DefaultStoreClient<K,V>
The enhanced StoreClient
implementation
you get back from a StoreClientFactory
Methods inherited from class voldemort.client.DefaultStoreClient |
applyUpdate, applyUpdate, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZenStoreClient
public ZenStoreClient(java.lang.String storeName,
InconsistencyResolver<Versioned<V>> resolver,
AbstractStoreClientFactory storeFactory,
int maxMetadataRefreshAttempts,
java.lang.String clientContext,
int clientSequence,
ClientConfig config,
SchedulerService scheduler,
SystemStoreRepository sysRepository)
bootStrap
public void bootStrap()
- Overrides:
bootStrap
in class DefaultStoreClient<K,V>
getClientId
public java.lang.String getClientId()
getClusterMetadataVersion
public java.lang.String getClusterMetadataVersion()
getAsyncMetadataVersionManager
public AsyncMetadataVersionManager getAsyncMetadataVersionManager()
generateClientId
public java.lang.String generateClientId(ClientInfo clientInfo)
- Generate a unique client ID based on: 0. clientContext, if specified; 1.
storeName; 2. deployment path; 3. client sequence
- Parameters:
clientInfo
-
- Returns:
- unique client ID
finalize
public void finalize()
- Overrides:
finalize
in class java.lang.Object
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu