public class WanSyncManager extends Object
| Constructor and Description |
|---|
WanSyncManager(EnterpriseWanReplicationService wanReplicationService,
com.hazelcast.instance.Node node) |
| Modifier and Type | Method and Description |
|---|---|
com.hazelcast.monitor.WanSyncState |
getWanSyncState() |
void |
incrementSyncedPartitionCount() |
void |
initiateAntiEntropyRequest(String wanReplicationName,
String targetGroupName,
WanAntiEntropyEvent event)
Initiates a WAN anti-entropy event and designates this member as the
coordinator to broadcast the event to other cluster members.
|
void |
publishAntiEntropyEventOnMembers(String wanReplicationName,
String targetGroupName,
WanAntiEntropyEvent event)
Keeps broadcasting the WAN anti-entropy event to all members until it
has been triggered for all partitions or some partitions have failed for
times.
|
void |
resetSyncedPartitionCount() |
void |
shutdown() |
public WanSyncManager(EnterpriseWanReplicationService wanReplicationService, com.hazelcast.instance.Node node)
public void shutdown()
public void initiateAntiEntropyRequest(String wanReplicationName, String targetGroupName, WanAntiEntropyEvent event)
wanReplicationName - name of WAN replication configuration (scheme)targetGroupName - WAN target cluster group nameevent - the WAN anti-entropy eventSyncFailedException - if there is an ongoing anti-entropy event being processedpublic com.hazelcast.monitor.WanSyncState getWanSyncState()
public void publishAntiEntropyEventOnMembers(String wanReplicationName, String targetGroupName, WanAntiEntropyEvent event)
This method merely is concerned with publishing the event on all partitions. Whether the event is fully processed when this method returns depends on the semantics of processing each event type. In case of WAN sync event, the sync is not complete when this method returns. After this method returns, entries for all partitions have been enqueued but not yet replicated.
wanReplicationName - name of WAN replication configuration (scheme)targetGroupName - WAN target cluster group nameevent - the WAN anti-entropy eventpublic void incrementSyncedPartitionCount()
public void resetSyncedPartitionCount()
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.