public final class WanReplicationPublisherDelegate extends Object implements com.hazelcast.wan.WanReplicationPublisher
| Constructor and Description |
|---|
WanReplicationPublisherDelegate(String name,
Map<String,WanReplicationEndpoint> endpoints) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
WanReplicationEndpoint |
getEndpoint(String groupName)
|
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, Map<String,WanReplicationEndpoint> endpoints)
public Collection<WanReplicationEndpoint> getEndpoints()
WanReplicationEndpoints for this delegatepublic WanReplicationEndpoint getEndpoint(String groupName)
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 addedCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.