Class FixedDetector
java.lang.Object
org.apache.iotdb.confignode.manager.load.cache.detector.FixedDetector
- All Implemented Interfaces:
IFailureDetector
FixedDetector will decide a node unknown iff. Time elapsed from last heartbeat exceeds the
heartbeatTimeoutNs.
-
Field Summary
Fields inherited from interface org.apache.iotdb.confignode.manager.load.cache.IFailureDetector
FIXED_DETECTOR, PHI_ACCRUAL_DETECTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAvailable(List<AbstractHeartbeatSample> history) Given the heartbeat history, decide whether this endpoint is still available
-
Constructor Details
-
FixedDetector
public FixedDetector(long heartbeatTimeoutNs)
-
-
Method Details
-
isAvailable
Description copied from interface:IFailureDetectorGiven the heartbeat history, decide whether this endpoint is still available- Specified by:
isAvailablein interfaceIFailureDetector- Parameters:
history- heartbeat history- Returns:
- false if the endpoint is under failure
-