voldemort.client
Class ZenStoreClient<K,V>

java.lang.Object
  extended by voldemort.client.DefaultStoreClient<K,V>
      extended by voldemort.client.ZenStoreClient<K,V>
Type Parameters:
K - The key type
V - 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


Field Summary
 
Fields inherited from class voldemort.client.DefaultStoreClient
metadataRefreshAttempts, resolver, store, storeFactory, storeName
 
Constructor Summary
ZenStoreClient(java.lang.String storeName, InconsistencyResolver<Versioned<V>> resolver, AbstractStoreClientFactory storeFactory, int maxMetadataRefreshAttempts)
           
ZenStoreClient(java.lang.String storeName, InconsistencyResolver<Versioned<V>> resolver, AbstractStoreClientFactory storeFactory, int maxMetadataRefreshAttempts, java.lang.String clientContext, int clientSequence, ClientConfig config, SchedulerService scheduler)
           
 
Method Summary
 void bootStrap()
           
 java.lang.String generateClientId(ClientInfo clientInfo)
          Generate a unique client ID based on: 0.
 java.lang.String getClientId()
           
 java.lang.String getClusterMetadataVersion()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZenStoreClient

public ZenStoreClient(java.lang.String storeName,
                      InconsistencyResolver<Versioned<V>> resolver,
                      AbstractStoreClientFactory storeFactory,
                      int maxMetadataRefreshAttempts)

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)
Method Detail

bootStrap

public void bootStrap()
Overrides:
bootStrap in class DefaultStoreClient<K,V>

getClientId

public java.lang.String getClientId()

getClusterMetadataVersion

public java.lang.String getClusterMetadataVersion()

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


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu