voldemort.cluster.failuredetector
Interface StoreVerifier
- All Known Implementing Classes:
- BasicStoreVerifier, ClientStoreVerifier, ServerStoreVerifier
public interface StoreVerifier
A StoreVerifier is used to test a Store given a Node. The act of testing a
store for a given node is not the same depending on your environment (in the
server itself, on a client (and even further it depends on what transport is
used for connecting to the server), unit tests, etc.). This helps to extract
away the differences.
This is used by some FailureDetector implementations to attempt contact with
the node before marking said node as available.
KEY
static final ByteArray KEY
verifyStore
void verifyStore(Node node)
throws UnreachableStoreException,
VoldemortException
- Verifies the ability to connect to a Store for this node.
- Parameters:
node
- Node to test
- Throws:
UnreachableStoreException
VoldemortException
flushCachedStores
void flushCachedStores()
- Flushes the cached stores if any
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu