public interface ClusterFailureDetector
Modifier and Type | Method and Description |
---|---|
void |
heartbeat(Member member,
long timestamp)
Notifies this failure detector about received heartbeat message from a member.
|
boolean |
isAlive(Member member,
long timestamp)
Returns true if given member is considered as alive/available.
|
long |
lastHeartbeat(Member member)
Returns the last heartbeat timestamp for a member.
|
void |
remove(Member member)
Deregister member from tracking and cleanup resources related to this member.
|
void |
reset()
Clear all state kept by this failure detector
|
double |
suspicionLevel(Member member,
long timestamp)
Returns suspicion level about a given member.
|
void heartbeat(Member member, long timestamp)
member
- member which heartbeat message is received fromtimestamp
- timestamp of heartbeat message in millisecondsboolean isAlive(Member member, long timestamp)
member
- member whose liveness is questionedtimestamp
- timestamp in millisecondslong lastHeartbeat(Member member)
member
- member whose heartbeat timestamp is requesteddouble suspicionLevel(Member member, long timestamp)
0
indicates no suspicion at all.member
- membertimestamp
- timestamp in millisecondsvoid remove(Member member)
member
- member to be removedvoid reset()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.