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.


Field Summary
static ByteArray KEY
           
 
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.
 

Field Detail

KEY

static final ByteArray KEY
Method Detail

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