public class ClusterHeartbeatManager extends Object
| Modifier and Type | Method and Description |
|---|---|
long |
getHeartbeatIntervalMillis() |
PingFailureDetector |
getIcmpFailureDetector() |
long |
getLastHeartbeatTime(Member member) |
void |
handleHeartbeat(MembersViewMetadata senderMembersViewMetadata,
String receiverUuid,
long timestamp) |
void |
handleHeartbeatComplaint(MembersViewMetadata receiverMVMetadata,
MembersViewMetadata senderMVMetadata) |
void |
onHeartbeat(MemberImpl member,
long timestamp)
Accepts the heartbeat message from
member created at timestamp. |
void |
sendMasterConfirmation()
Deprecated.
since 3.10
|
public long getHeartbeatIntervalMillis()
public long getLastHeartbeatTime(Member member)
public void handleHeartbeat(MembersViewMetadata senderMembersViewMetadata, String receiverUuid, long timestamp)
public void handleHeartbeatComplaint(MembersViewMetadata receiverMVMetadata, MembersViewMetadata senderMVMetadata)
public void onHeartbeat(MemberImpl member, long timestamp)
member created at timestamp. The timestamp must be
related to the cluster clock, not the local clock. The heartbeat is ignored if the duration between
timestamp and the current cluster time is more than GroupProperty.MAX_NO_HEARTBEAT_SECONDS/2.
If the sending node is the master, this node will also calculate and set the cluster clock diff.member - the member sending the heartbeattimestamp - the timestamp when the heartbeat was created@Deprecated public void sendMasterConfirmation()
MasterConfirmationOp to the master if this node is joined, it is not in the
NodeState.SHUT_DOWN state and is not the master node.
This method is here only for 3.9 compatibilitypublic PingFailureDetector getIcmpFailureDetector()
icmpFailureDetector if configured, otherwise nullCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.