public class ReplicationLocalViewStateListener extends AbstractReplicationNodeStateListener
Constructor and Description |
---|
ReplicationLocalViewStateListener(ReplicationLocalView localView,
LocalViewConfig viewConfig) |
Modifier and Type | Method and Description |
---|---|
boolean |
isHealthy() |
void |
onNewReplicaRequest(String groupName,
String channelName,
boolean isSynchronizeRequest)
Called when new replica request is received, for custom validation
|
void |
onSourceBrokenReplicationTopology(String groupName,
String channelTargetMemberName,
BrokenReplicationTopologyException error) |
void |
onSourceChannelActivated(String groupName,
String memberName) |
void |
onSynchronizationCompleted() |
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 |
setDisconnectedState(int numOfPartitions) |
onReplicationNodeModeChange
public ReplicationLocalViewStateListener(ReplicationLocalView localView, LocalViewConfig viewConfig)
public boolean isHealthy()
public boolean onTargetChannelOutOfSync(String groupName, String channelSourceLookupName, IncomingReplicationOutOfSyncException outOfSyncReason)
IReplicationTargetGroupStateListener
public void onTargetChannelBacklogDropped(String groupName, String channelSourceLooString, IBacklogMemberState memberState)
IReplicationTargetGroupStateListener
public void onTargetChannelCreationValidation(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListener
public void setDisconnectedState(int numOfPartitions)
public void onTargetChannelSourceDisconnected(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListener
onTargetChannelSourceDisconnected
in interface IReplicationTargetGroupStateListener
onTargetChannelSourceDisconnected
in class AbstractReplicationNodeStateListener
public void onTargetChannelConnected(String groupName, String sourceMemberName, Object sourceUniqueId)
IReplicationTargetGroupStateListener
onTargetChannelConnected
in interface IReplicationTargetGroupStateListener
onTargetChannelConnected
in class AbstractReplicationNodeStateListener
public void onSourceBrokenReplicationTopology(String groupName, String channelTargetMemberName, BrokenReplicationTopologyException error)
public void onNewReplicaRequest(String groupName, String channelName, boolean isSynchronizeRequest)
IReplicationNodeStateListener
public void onSynchronizationCompleted() throws SpaceCacheInitializationException
Copyright © GigaSpaces.