java.lang.Object
org.apache.iotdb.confignode.manager.load.cache.detector.FixedDetector
All Implemented Interfaces:
IFailureDetector

public class FixedDetector extends Object implements IFailureDetector
FixedDetector will decide a node unknown iff. Time elapsed from last heartbeat exceeds the heartbeatTimeoutNs.
  • Constructor Details

    • FixedDetector

      public FixedDetector(long heartbeatTimeoutNs)
  • Method Details

    • isAvailable

      public boolean isAvailable(List<AbstractHeartbeatSample> history)
      Description copied from interface: IFailureDetector
      Given the heartbeat history, decide whether this endpoint is still available
      Specified by:
      isAvailable in interface IFailureDetector
      Parameters:
      history - heartbeat history
      Returns:
      false if the endpoint is under failure