public class DurableNotificationReplicationNodeStateListener extends Object implements IReplicationNodeStateListener
Constructor and Description |
---|
DurableNotificationReplicationNodeStateListener(EventSessionConfig config,
DurableNotificationLease lease,
IAsyncHandlerProvider asyncProvider,
int numOfPartitions,
int partitionId) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
onNewReplicaRequest(String groupName,
String channelName,
boolean isSynchronizeRequest)
Called when new replica request is received, for custom validation
|
void |
onReplicationNodeModeChange(ReplicationNodeMode newMode)
Called when replication node mode has changed.
|
void |
onSourceBrokenReplicationTopology(String groupName,
String channelTargetMemberName,
BrokenReplicationTopologyException error) |
void |
onSourceChannelActivated(String groupName,
String memberName) |
void |
onTargetChannelBacklogDropped(String groupName,
String channelSourceLooString,
IBacklogMemberState memberState)
Called when a target channel received a notice that its backlog was dropped at the source
|
void |
onTargetChannelConnected(String groupName,
String sourceMemberName,
Object sourceUniqueId)
Called when a target channel is connected/created
|
void |
onTargetChannelCreationValidation(String groupName,
String sourceMemberName,
Object sourceUniqueId)
Called when a new channel is being established, just before the channel is created to allow
custom validation logic.
|
boolean |
onTargetChannelOutOfSync(String groupName,
String channelSourceLookupName,
IncomingReplicationOutOfSyncException outOfSyncReason)
Called when a target channel failed handshake due to becoming out of sync
|
void |
onTargetChannelSourceDisconnected(String groupName,
String sourceMemberName,
Object sourceUniqueId)
Called when a target channel lost connection to its source
|
void |
startDisconnectionMonitoring() |
public DurableNotificationReplicationNodeStateListener(EventSessionConfig config, DurableNotificationLease lease, IAsyncHandlerProvider asyncProvider, int numOfPartitions, int partitionId)
public void startDisconnectionMonitoring()
public boolean onTargetChannelOutOfSync(String groupName, String channelSourceLookupName, IncomingReplicationOutOfSyncException outOfSyncReason)
IReplicationTargetGroupStateListener
onTargetChannelOutOfSync
in interface IReplicationTargetGroupStateListener
public void onTargetChannelBacklogDropped(String groupName, String channelSourceLooString, IBacklogMemberState memberState)
IReplicationTargetGroupStateListener
onTargetChannelBacklogDropped
in interface IReplicationTargetGroupStateListener
public void onTargetChannelSourceDisconnected(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListener
onTargetChannelSourceDisconnected
in interface IReplicationTargetGroupStateListener
public void onTargetChannelConnected(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListener
onTargetChannelConnected
in interface IReplicationTargetGroupStateListener
public void onReplicationNodeModeChange(ReplicationNodeMode newMode)
IReplicationNodeStateListener
onReplicationNodeModeChange
in interface IReplicationNodeStateListener
public void close()
public void onTargetChannelCreationValidation(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListener
onTargetChannelCreationValidation
in interface IReplicationTargetGroupStateListener
public void onSourceBrokenReplicationTopology(String groupName, String channelTargetMemberName, BrokenReplicationTopologyException error)
onSourceBrokenReplicationTopology
in interface IReplicationSourceGroupStateListener
public void onSourceChannelActivated(String groupName, String memberName)
onSourceChannelActivated
in interface IReplicationSourceGroupStateListener
public void onNewReplicaRequest(String groupName, String channelName, boolean isSynchronizeRequest)
IReplicationNodeStateListener
onNewReplicaRequest
in interface IReplicationNodeStateListener
Copyright © GigaSpaces.