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)
IReplicationTargetGroupStateListeneronTargetChannelOutOfSync in interface IReplicationTargetGroupStateListenerpublic void onTargetChannelBacklogDropped(String groupName, String channelSourceLooString, IBacklogMemberState memberState)
IReplicationTargetGroupStateListeneronTargetChannelBacklogDropped in interface IReplicationTargetGroupStateListenerpublic void onTargetChannelSourceDisconnected(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListeneronTargetChannelSourceDisconnected in interface IReplicationTargetGroupStateListenerpublic void onTargetChannelConnected(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListeneronTargetChannelConnected in interface IReplicationTargetGroupStateListenerpublic void onReplicationNodeModeChange(ReplicationNodeMode newMode)
IReplicationNodeStateListeneronReplicationNodeModeChange in interface IReplicationNodeStateListenerpublic void close()
public void onTargetChannelCreationValidation(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListeneronTargetChannelCreationValidation in interface IReplicationTargetGroupStateListenerpublic void onSourceBrokenReplicationTopology(String groupName, String channelTargetMemberName, BrokenReplicationTopologyException error)
onSourceBrokenReplicationTopology in interface IReplicationSourceGroupStateListenerpublic void onSourceChannelActivated(String groupName, String memberName)
onSourceChannelActivated in interface IReplicationSourceGroupStateListenerpublic void onNewReplicaRequest(String groupName, String channelName, boolean isSynchronizeRequest)
IReplicationNodeStateListeneronNewReplicaRequest in interface IReplicationNodeStateListenerCopyright © GigaSpaces.