Class AbstractReplicationTargetChannel
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationTargetChannel
- All Implemented Interfaces:
IReplicationInFilterCallback,IReplicationTargetChannel,IConnectionStateListener,IConnectivityCheckListener
- Direct Known Subclasses:
AsyncReplicationTargetChannel,SyncReplicationTargetChannel
public abstract class AbstractReplicationTargetChannel
extends Object
implements IReplicationInFilterCallback, IReplicationTargetChannel, IConnectionStateListener, IConnectivityCheckListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.Loggerprotected final org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReplicationTargetChannel(TargetGroupConfig groupConfig, String myLookupName, Object myUniqueId, ReplicationEndpointDetails sourceEndpointDetails, IReplicationMonitoredConnection sourceConnection, String groupName, IReplicationTargetProcessLog processLog, IReplicationInFilter inFilter, IReplicationTargetGroupStateListener groupStateListener, IReplicationGroupHistory groupHistory, boolean wasEverActive) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidlongvoidinvokeInFilter(IReplicationInContext context, IReplicationPacketData<?> data) Callback method for the data consumer to invoke input filters before executing the packetbooleanprotected voidlogEventInHistory(String event) voidonChannelBacklogDropped(String groupName, IBacklogMemberState memberState, IReplicationTargetGroupStateListener listener) voidonConnected(boolean newTarget) voidprotected StringperformHandshake(IBacklogHandshakeRequest handshakeRequest) process(IReplicationOrderedPacket packet) processBatch(List<IReplicationOrderedPacket> packets) voidprocessHandshakeIteration(IHandshakeIteration handshakeIteration) processIdleStateData(IIdleStateData idleStateData)
-
Field Details
-
_specificLogger
protected final org.slf4j.Logger _specificLogger -
_specificVerboseLogger
protected final org.slf4j.Logger _specificVerboseLogger
-
-
Constructor Details
-
AbstractReplicationTargetChannel
public AbstractReplicationTargetChannel(TargetGroupConfig groupConfig, String myLookupName, Object myUniqueId, ReplicationEndpointDetails sourceEndpointDetails, IReplicationMonitoredConnection sourceConnection, String groupName, IReplicationTargetProcessLog processLog, IReplicationInFilter inFilter, IReplicationTargetGroupStateListener groupStateListener, IReplicationGroupHistory groupHistory, boolean wasEverActive)
-
-
Method Details
-
getProcessLog
- Specified by:
getProcessLogin interfaceIReplicationTargetChannel
-
getSourceLookupName
-
getMyLookupName
-
getSourceUniqueId
-
processBatch
-
processIdleStateData
-
process
-
invokeInFilter
Description copied from interface:IReplicationInFilterCallbackCallback method for the data consumer to invoke input filters before executing the packet- Specified by:
invokeInFilterin interfaceIReplicationInFilterCallback
-
performHandshake
-
processHandshakeIteration
-
close
-
isSourceAttached
public boolean isSourceAttached() -
onChannelBacklogDropped
public void onChannelBacklogDropped(String groupName, IBacklogMemberState memberState, IReplicationTargetGroupStateListener listener) -
onDumpState
-
dumpState
-
logEventInHistory
-
onConnected
public void onConnected(boolean newTarget) - Specified by:
onConnectedin interfaceIConnectionStateListener
-
afterSuccessfulConnectivityCheck
public void afterSuccessfulConnectivityCheck()- Specified by:
afterSuccessfulConnectivityCheckin interfaceIConnectivityCheckListener
-
onDisconnected
public void onDisconnected()- Specified by:
onDisconnectedin interfaceIConnectionStateListener
-
getSourceEndpointAddress
-
getLastProcessTimeStamp
public long getLastProcessTimeStamp()
-