Search in sources :

Example 1 with MutableStoreConnectionVerifier

use of voldemort.cluster.failuredetector.MutableStoreConnectionVerifier in project voldemort by voldemort.

the class FailureDetectorTestUtils method recordException.

public static void recordException(FailureDetector failureDetector, Node node, long requestTime, UnreachableStoreException e) {
    ((MutableStoreConnectionVerifier) failureDetector.getConfig().getConnectionVerifier()).setErrorStore(node, new UnreachableStoreException("junit injected test error"));
    failureDetector.recordException(node, requestTime, e);
}
Also used : MutableStoreConnectionVerifier(voldemort.cluster.failuredetector.MutableStoreConnectionVerifier) UnreachableStoreException(voldemort.store.UnreachableStoreException)

Aggregations

MutableStoreConnectionVerifier (voldemort.cluster.failuredetector.MutableStoreConnectionVerifier)1 UnreachableStoreException (voldemort.store.UnreachableStoreException)1