voldemort.cluster.failuredetector
Class ServerStoreVerifier

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

public class ServerStoreVerifier
extends java.lang.Object
implements StoreVerifier

ServerStoreVerifier is used to verify store connectivity for a server 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 using the StoreRepository.


Field Summary
 
Fields inherited from interface voldemort.cluster.failuredetector.StoreVerifier
KEY
 
Constructor Summary
ServerStoreVerifier(SocketStoreFactory storeFactory, MetadataStore metadataStore, VoldemortConfig voldemortConfig)
           
 
Method Summary
 void flushCachedStores()
          Flushes the cached stores if any
 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

ServerStoreVerifier

public ServerStoreVerifier(SocketStoreFactory storeFactory,
                           MetadataStore metadataStore,
                           VoldemortConfig voldemortConfig)
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

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