@PrivateApi public abstract class ClusterHotRestartEventListener extends Object implements EventListener
| Constructor and Description |
|---|
ClusterHotRestartEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterExpectedMembersJoin(Collection<? extends com.hazelcast.core.Member> members)
Called on all nodes after all expected members join to the cluster.
|
void |
beforeAllMembersJoin(Collection<? extends com.hazelcast.core.Member> currentMembers)
Called while waiting for all members to join.
|
void |
onDataLoadStart(com.hazelcast.core.Member member)
Called when data load is started.
|
void |
onHotRestartDataLoadComplete(HotRestartClusterStartStatus result,
Set<String> excludedMemberUuids)
Called on all nodes after the final cluster start decision is made.
|
void |
onHotRestartDataLoadResult(com.hazelcast.core.Member sender,
boolean success)
Called on master when it receives a Hot Restart data load result from a node.
|
void |
onPartitionTableValidationResult(com.hazelcast.core.Member sender,
boolean success)
Called after master receives a partition table from a member and validates it.
|
void |
onPrepareComplete(Collection<? extends com.hazelcast.core.Member> members,
com.hazelcast.internal.partition.PartitionTableView partitionTable,
boolean startWithHotRestart)
Called after a node completes the preparation by reading member list and partition table from disk
|
void |
onSingleMemberCluster()
Called when a persisted member list contains only a single member.
|
public void onPrepareComplete(Collection<? extends com.hazelcast.core.Member> members, com.hazelcast.internal.partition.PartitionTableView partitionTable, boolean startWithHotRestart)
members - member list which is read from the diskpartitionTable - partition table which is read from diskstartWithHotRestart - if false, node will start without hot restartpublic void onSingleMemberCluster()
public void beforeAllMembersJoin(Collection<? extends com.hazelcast.core.Member> currentMembers)
currentMembers - currently joined memberspublic void afterExpectedMembersJoin(Collection<? extends com.hazelcast.core.Member> members)
members - expected member listpublic void onPartitionTableValidationResult(com.hazelcast.core.Member sender,
boolean success)
sender - member that has sent the partition tablesuccess - result of the validationpublic void onDataLoadStart(com.hazelcast.core.Member member)
member - member that starts to load its own datapublic void onHotRestartDataLoadResult(com.hazelcast.core.Member sender,
boolean success)
sender - member that sends its hot-restart data load resultsuccess - result of the hot restart data load attempt of the nodepublic void onHotRestartDataLoadComplete(HotRestartClusterStartStatus result, Set<String> excludedMemberUuids)
result - result of the cluster wide load operationCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.