use of voldemort.cluster.failuredetector.FailureDetectorConfig in project voldemort by voldemort.
the class HttpStoreClientFactory method initFailureDetector.
@Override
protected FailureDetector initFailureDetector(final ClientConfig config, Cluster cluster) {
ClientStoreConnectionVerifier verifier = new ClientStoreConnectionVerifier() {
@Override
protected Store<ByteArray, byte[], byte[]> getStoreInternal(Node node) {
return HttpStoreClientFactory.this.getStore(MetadataStore.METADATA_STORE_NAME, node.getHost(), node.getHttpPort(), config.getRequestFormatType());
}
};
FailureDetectorConfig failureDetectorConfig = new FailureDetectorConfig(config).setCluster(cluster).setConnectionVerifier(verifier);
return create(failureDetectorConfig, config.isJmxEnabled());
}
Aggregations