Class PhiAccrualFailureDetector


  • public class PhiAccrualFailureDetector
    extends java.lang.Object
    Phi Accrual failure detector.

    Based on a paper titled: "The φ Accrual Failure Detector" by Hayashibara, et al.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getLastHeartbeatTime​(org.onosproject.cluster.NodeId nodeId)
      Returns the last heartbeat time for the given node.
      double phi​(org.onosproject.cluster.NodeId nodeId)
      Compute phi for the specified node id.
      void report​(org.onosproject.cluster.NodeId nodeId)
      Report a new heart beat for the specified node id.
      void report​(org.onosproject.cluster.NodeId nodeId, long arrivalTime)
      Report a new heart beat for the specified node id.
      void reset​(org.onosproject.cluster.NodeId nodeId)
      Resets the failure detector for the given node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PhiAccrualFailureDetector

        public PhiAccrualFailureDetector()
      • PhiAccrualFailureDetector

        public PhiAccrualFailureDetector​(long minStandardDeviationMillis)
      • PhiAccrualFailureDetector

        public PhiAccrualFailureDetector​(int minSamples,
                                         long minStandardDeviationMillis)
    • Method Detail

      • getLastHeartbeatTime

        public long getLastHeartbeatTime​(org.onosproject.cluster.NodeId nodeId)
        Returns the last heartbeat time for the given node.
        Parameters:
        nodeId - the node identifier
        Returns:
        the last heartbeat time for the given node
      • report

        public void report​(org.onosproject.cluster.NodeId nodeId)
        Report a new heart beat for the specified node id.
        Parameters:
        nodeId - node id
      • report

        public void report​(org.onosproject.cluster.NodeId nodeId,
                           long arrivalTime)
        Report a new heart beat for the specified node id.
        Parameters:
        nodeId - node id
        arrivalTime - arrival time
      • reset

        public void reset​(org.onosproject.cluster.NodeId nodeId)
        Resets the failure detector for the given node.
        Parameters:
        nodeId - node identifier for the node for which to reset the failure detector
      • phi

        public double phi​(org.onosproject.cluster.NodeId nodeId)
        Compute phi for the specified node id.
        Parameters:
        nodeId - node id
        Returns:
        phi value