public final class WanReplicationPublisherDelegate extends Object implements com.hazelcast.wan.WanReplicationPublisher
| Constructor and Description |
|---|
WanReplicationPublisherDelegate(String name,
ConcurrentMap<String,WanReplicationEndpoint> endpoints) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpoint(String publisherId,
WanReplicationEndpoint endpoint) |
void |
checkWanReplicationQueues() |
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(com.hazelcast.spi.PartitionReplicationEvent event,
Collection<com.hazelcast.spi.ServiceNamespace> namespaces,
EWRMigrationContainer migrationDataContainer)
Collect all replication data matching the replication event and collection
of namespaces being replicated.
|
void |
destroyMapData(String mapName)
Releases all resources for the map with the given
mapName. |
WanReplicationEndpoint |
getEndpoint(String publisherId)
|
Collection<WanReplicationEndpoint> |
getEndpoints()
Returns all
WanReplicationEndpoints for this delegate |
String |
getName() |
Map<String,com.hazelcast.monitor.LocalWanPublisherStats> |
getStats() |
void |
publishReplicationEvent(String serviceName,
com.hazelcast.wan.ReplicationEventObject eventObject)
Publishes a replication event to all endpoints to which this publisher
delegates.
|
void |
publishReplicationEvent(com.hazelcast.wan.WanReplicationEvent wanReplicationEvent)
Publishes a replication event to all endpoints to which this publisher
delegates.
|
void |
publishReplicationEventBackup(String serviceName,
com.hazelcast.wan.ReplicationEventObject eventObject)
Publishes a backup replication event to all endpoints to which this
publisher delegates.
|
public WanReplicationPublisherDelegate(String name, ConcurrentMap<String,WanReplicationEndpoint> endpoints)
public Collection<WanReplicationEndpoint> getEndpoints()
WanReplicationEndpoints for this delegatepublic WanReplicationEndpoint getEndpoint(String publisherId)
public void addEndpoint(String publisherId, WanReplicationEndpoint endpoint)
public String getName()
public void publishReplicationEvent(String serviceName, com.hazelcast.wan.ReplicationEventObject eventObject)
publishReplicationEvent in interface com.hazelcast.wan.WanReplicationPublisherpublic void publishReplicationEventBackup(String serviceName, com.hazelcast.wan.ReplicationEventObject eventObject)
publishReplicationEventBackup in interface com.hazelcast.wan.WanReplicationPublisherpublic void publishReplicationEvent(com.hazelcast.wan.WanReplicationEvent wanReplicationEvent)
publishReplicationEvent in interface com.hazelcast.wan.WanReplicationPublisherpublic void checkWanReplicationQueues()
checkWanReplicationQueues in interface com.hazelcast.wan.WanReplicationPublisherpublic void collectReplicationData(com.hazelcast.spi.PartitionReplicationEvent event,
Collection<com.hazelcast.spi.ServiceNamespace> namespaces,
EWRMigrationContainer migrationDataContainer)
event - the replication eventnamespaces - the object namespaces which are being replicatedmigrationDataContainer - the container for the migration datapublic void collectAllServiceNamespaces(com.hazelcast.spi.PartitionReplicationEvent event,
Set<com.hazelcast.spi.ServiceNamespace> namespaces)
event - the replication eventnamespaces - the set in which namespaces should be addedpublic void destroyMapData(String mapName)
mapName.mapName - the map mapNameCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.