/** * Constructs a new FailureDetectorConfig from a server perspective (via {@link VoldemortConfig}). * * <p><b>Note</b>: the {@link #setNodes(Collection)} and {@link #setStoreVerifier(StoreVerifier)} * methods must be called to ensure <i>complete</i> configuration. * * @param config {@link VoldemortConfig} instance */ public FailureDetectorConfig(VoldemortConfig config) { setImplementationClassName(config.getFailureDetectorImplementation()); setBannagePeriod(config.getFailureDetectorBannagePeriod()); setThreshold(config.getFailureDetectorThreshold()); setThresholdCountMinimum(config.getFailureDetectorThresholdCountMinimum()); setThresholdInterval(config.getFailureDetectorThresholdInterval()); setAsyncRecoveryInterval(config.getFailureDetectorAsyncRecoveryInterval()); setCatastrophicErrorTypes(config.getFailureDetectorCatastrophicErrorTypes()); setRequestLengthThreshold(config.getFailureDetectorRequestLengthThreshold()); setMaximumTolerableFatalFailures(DEFAULT_MAX_TOLERABLE_FATAL_FAILURES); }