voldemort.cluster.failuredetector
Class ServerStoreVerifier
java.lang.Object
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
.
Fields inherited from interface voldemort.cluster.failuredetector.StoreVerifier |
KEY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerStoreVerifier
public ServerStoreVerifier(SocketStoreFactory storeFactory,
MetadataStore metadataStore,
VoldemortConfig voldemortConfig)
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