public abstract class AbstractReplicationTargetChannel extends Object implements IReplicationInFilterCallback, IReplicationTargetChannel, IConnectionStateListener, IConnectivityCheckListener
Modifier and Type | Field and Description |
---|---|
protected Logger |
_specificLogger |
protected 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 Logger _specificLogger
protected final 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.