public abstract class AbstractReplicationTargetChannel extends Object implements IReplicationInFilterCallback, IReplicationTargetChannel, IConnectionStateListener, IConnectivityCheckListener
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
_specificLogger |
protected org.slf4j.Logger |
_specificVerboseLogger |
Constructor and Description |
---|
AbstractReplicationTargetChannel(TargetGroupConfig groupConfig,
String myLookupName,
Object myUniqueId,
ReplicationEndpointDetails sourceEndpointDetails,
IReplicationMonitoredConnection sourceConnection,
String groupName,
IReplicationTargetProcessLog processLog,
IReplicationInFilter inFilter,
IReplicationTargetGroupStateListener groupStateListener,
IReplicationGroupHistory groupHistory,
boolean wasEverActive) |
protected final org.slf4j.Logger _specificLogger
protected final org.slf4j.Logger _specificVerboseLogger
public AbstractReplicationTargetChannel(TargetGroupConfig groupConfig, String myLookupName, Object myUniqueId, ReplicationEndpointDetails sourceEndpointDetails, IReplicationMonitoredConnection sourceConnection, String groupName, IReplicationTargetProcessLog processLog, IReplicationInFilter inFilter, IReplicationTargetGroupStateListener groupStateListener, IReplicationGroupHistory groupHistory, boolean wasEverActive)
public IReplicationTargetProcessLog getProcessLog()
getProcessLog
in interface IReplicationTargetChannel
public String getSourceLookupName()
public String getMyLookupName()
public Object getSourceUniqueId()
public Object processBatch(List<IReplicationOrderedPacket> packets)
public Object processIdleStateData(IIdleStateData idleStateData)
public Object process(IReplicationOrderedPacket packet)
public void invokeInFilter(IReplicationInContext context, IReplicationPacketData<?> data)
IReplicationInFilterCallback
invokeInFilter
in interface IReplicationInFilterCallback
public IProcessLogHandshakeResponse performHandshake(IBacklogHandshakeRequest handshakeRequest)
public void processHandshakeIteration(IHandshakeIteration handshakeIteration)
public void close(long channelCloseTimeout, TimeUnit unit)
public boolean isSourceAttached()
public void onChannelBacklogDropped(String groupName, IBacklogMemberState memberState, IReplicationTargetGroupStateListener listener)
protected String onDumpState()
public String dumpState()
protected void logEventInHistory(String event)
public void onConnected(boolean newTarget)
onConnected
in interface IConnectionStateListener
public void afterSuccessfulConnectivityCheck()
afterSuccessfulConnectivityCheck
in interface IConnectivityCheckListener
public void onDisconnected()
onDisconnected
in interface IConnectionStateListener
public Object getSourceEndpointAddress()
public long getLastProcessTimeStamp()
Copyright © GigaSpaces.