public class ClusterHeartbeatManager extends Object
| Constructor and Description |
|---|
ClusterHeartbeatManager(Node node,
ClusterServiceImpl clusterService) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptMasterConfirmation(MemberImpl member,
long timestamp)
Accepts the master confirmation message sent from cluster members to the master.
|
void |
onHeartbeat(MemberImpl member,
long timestamp)
Accepts the heartbeat message from
member created at timestamp. |
void |
sendMasterConfirmation()
Sends a
MasterConfirmationOperation to the master if this node is joined, it is not in the
NodeState.SHUT_DOWN state and is not the master node. |
public ClusterHeartbeatManager(Node node, ClusterServiceImpl clusterService)
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 createdpublic void acceptMasterConfirmation(MemberImpl member, long timestamp)
timestamp and the current
cluster clock time is more than GroupProperty.MAX_NO_MASTER_CONFIRMATION_SECONDS/2 then the confirmation
is ignored.member - the member sending the confirmation to the master nodetimestamp - the cluster timestamp when the confirmation was madepublic void sendMasterConfirmation()
MasterConfirmationOperation to the master if this node is joined, it is not in the
NodeState.SHUT_DOWN state and is not the master node.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.