public interface WanReplicationEndpoint
extends com.hazelcast.wan.WanReplicationPublisher
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheQueue(String key,
int partitionId,
WanReplicationEventQueue value) |
void |
addMapQueue(String key,
int partitionId,
WanReplicationEventQueue value) |
void |
checkWanReplicationQueues() |
void |
clearQueues() |
void |
collectAllServiceNamespaces(com.hazelcast.spi.PartitionReplicationEvent event,
Set<com.hazelcast.spi.ServiceNamespace> namespaces)
Collect the namespaces of all queues that should be replicated by the replication event.
|
void |
collectReplicationData(String wanReplicationName,
com.hazelcast.spi.PartitionReplicationEvent event,
Collection<com.hazelcast.spi.ServiceNamespace> namespaces,
EWRMigrationContainer migrationDataContainer)
Collect all replication data for the specific replication event and collection of namespaces being replicated.
|
PublisherQueueContainer |
getPublisherQueueContainer() |
com.hazelcast.monitor.LocalWanPublisherStats |
getStats()
Gathers statistics of related
WanReplicationEndpoint instance. |
void |
init(com.hazelcast.instance.Node node,
com.hazelcast.config.WanReplicationConfig wanReplicationConfig,
com.hazelcast.config.WanPublisherConfig wanPublisherConfig)
Initializes the endpoint using the given arguments.
|
void |
pause()
Calls to this method will pause WAN event queue polling.
|
void |
publishSyncEvent(WanSyncEvent syncRequest)
Publishes a wan sync event for all or a specific map and for all or some partitions.
|
void |
putBackup(com.hazelcast.wan.WanReplicationEvent wanReplicationEvent) |
void |
removeBackup(com.hazelcast.wan.WanReplicationEvent wanReplicationEvent)
Remove the oldest replication event from the replication queue and decrease the
backup event count.
|
void |
resume()
This method re-enables WAN event queue polling for a paused
WanReplicationEndpoint instance. |
void |
shutdown()
Closes the endpoint and its internal connections and shuts down other internal states.
|
void init(com.hazelcast.instance.Node node,
com.hazelcast.config.WanReplicationConfig wanReplicationConfig,
com.hazelcast.config.WanPublisherConfig wanPublisherConfig)
node - the current node that tries to connectwanReplicationConfig - WanReplicationConfig configwanPublisherConfig - this endpoint will be initialized using this WanPublisherConfig instancevoid shutdown()
void removeBackup(com.hazelcast.wan.WanReplicationEvent wanReplicationEvent)
wanReplicationEvent.wanReplicationEvent - the completed wan eventvoid putBackup(com.hazelcast.wan.WanReplicationEvent wanReplicationEvent)
PublisherQueueContainer getPublisherQueueContainer()
void addMapQueue(String key, int partitionId, WanReplicationEventQueue value)
void addCacheQueue(String key, int partitionId, WanReplicationEventQueue value)
void pause()
WanReplicationEndpoint instance.
WAN events will still be offered to WAN replication
queues but they won't be polled.
Calling this method on already paused WanReplicationEndpoint instances will have no effect.void resume()
WanReplicationEndpoint instance.
Calling this method on already running WanReplicationEndpoint instances will have no effect.pause()com.hazelcast.monitor.LocalWanPublisherStats getStats()
WanReplicationEndpoint instance. This method will always return the
same instance.LocalWanPublisherStatsvoid checkWanReplicationQueues()
checkWanReplicationQueues in interface com.hazelcast.wan.WanReplicationPublishervoid publishSyncEvent(WanSyncEvent syncRequest)
syncRequest - the wan sync requestvoid clearQueues()
void collectReplicationData(String wanReplicationName, com.hazelcast.spi.PartitionReplicationEvent event, Collection<com.hazelcast.spi.ServiceNamespace> namespaces, EWRMigrationContainer migrationDataContainer)
wanReplicationName - the WAN replication name in the hazelcast configuration for this endpointevent - the replication eventnamespaces - the object namespaces which are being replicatedmigrationDataContainer - the container for the migration datavoid collectAllServiceNamespaces(com.hazelcast.spi.PartitionReplicationEvent event,
Set<com.hazelcast.spi.ServiceNamespace> namespaces)
event - the replication eventnamespaces - the set in which namespaces should be addedCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.