voldemort.cluster.failuredetector
Class ClientStoreVerifier

java.lang.Object
  extended by voldemort.cluster.failuredetector.ClientStoreVerifier
All Implemented Interfaces:
StoreVerifier

public abstract class ClientStoreVerifier
extends java.lang.Object
implements StoreVerifier

ClientStoreVerifier is used to test stores in a client environment. The node->store mapping is not known at the early point in the client lifecycle that it can be provided, so it is performed on demand. This class is abstract due to needing to be implemented differently by the known store client implementations SocketStoreClientFactory and HttpStoreClientFactory.


Field Summary
 
Fields inherited from interface voldemort.cluster.failuredetector.StoreVerifier
KEY
 
Constructor Summary
protected ClientStoreVerifier()
           
 
Method Summary
 void flushCachedStores()
          Flushes the cached stores if any
protected abstract  Store<ByteArray,byte[],byte[]> getStoreInternal(Node node)
           
 void verifyStore(Node node)
          Verifies the ability to connect to a Store for this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientStoreVerifier

protected ClientStoreVerifier()
Method Detail

verifyStore

public void verifyStore(Node node)
                 throws UnreachableStoreException,
                        VoldemortException
Description copied from interface: StoreVerifier
Verifies the ability to connect to a Store for this node.

Specified by:
verifyStore in interface StoreVerifier
Parameters:
node - Node to test
Throws:
UnreachableStoreException
VoldemortException

getStoreInternal

protected abstract Store<ByteArray,byte[],byte[]> getStoreInternal(Node node)

flushCachedStores

public void flushCachedStores()
Description copied from interface: StoreVerifier
Flushes the cached stores if any

Specified by:
flushCachedStores in interface StoreVerifier


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