public class PhiAccrualFailureDetector
extends java.lang.Object
Based on a paper titled: "The φ Accrual Failure Detector" by Hayashibara, et al.
| Constructor and Description |
|---|
PhiAccrualFailureDetector() |
| Modifier and Type | Method and 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.
|
public long getLastHeartbeatTime(org.onosproject.cluster.NodeId nodeId)
nodeId - the node identifierpublic void report(org.onosproject.cluster.NodeId nodeId)
nodeId - node idpublic void report(org.onosproject.cluster.NodeId nodeId,
long arrivalTime)
nodeId - node idarrivalTime - arrival timepublic void reset(org.onosproject.cluster.NodeId nodeId)
nodeId - node identifier for the node for which to reset the failure detectorpublic double phi(org.onosproject.cluster.NodeId nodeId)
nodeId - node id