Class AsyncReplicationSourceChannel
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceChannel
com.gigaspaces.internal.cluster.node.impl.groups.async.AsyncReplicationSourceChannel
- All Implemented Interfaces:
IReplicationSourceChannel,IConnectionStateListener
- Direct Known Subclasses:
ReliableAsyncReplicationSourceChannel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe async channel is in two states: 1) Idle (the async dispatcher has returned an IDLE_CONTINUE result) 2) Sending: 2.1) The async dispatcher is running (the call method is being executed), it is preparing the the packets for sending, and then dispatch them to the target in asynchronous manner 2.2) The async dispatcher is suspended, waiting to be resumed or waken once the async result is recieved and processed 2.3) onResult is called when the async result is arrived and the result is being processed which in its turn decide whether to go into idle mode or to continue to another sending cycle if there are enough packets pendingNested classes/interfaces inherited from class com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceChannel
AbstractReplicationSourceChannel.ChannelState -
Field Summary
Fields inherited from class com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceChannel
_packetsPool, _specificLogger, _specificVerboseLogger, _statisticsCounter -
Constructor Summary
ConstructorsConstructorDescriptionAsyncReplicationSourceChannel(DynamicSourceGroupConfigHolder groupConfig, String groupName, String memberName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationGroupBacklog groupBacklog, IReplicationOutFilter outFilter, int batchSize, long intervalMilis, int intervalOperations, IAsyncHandlerProvider asyncHandlerProvider, boolean autoStart, IReplicationChannelDataFilter dataFilter, IReplicationSourceGroupStateListener stateListener, IReplicationGroupHistory groupHistory, ReplicationStatistics.ReplicationMode channelType, Object customBacklogMetadata, String tag, boolean resetTarget) AsyncReplicationSourceChannel(DynamicSourceGroupConfigHolder groupConfig, String groupName, String memberName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationGroupBacklog groupBacklog, IReplicationOutFilter outFilter, int batchSize, long intervalMilis, int intervalOperations, IAsyncHandlerProvider asyncHandlerProvider, IReplicationChannelDataFilter dataFilter, IReplicationSourceGroupStateListener stateListener, IReplicationGroupHistory groupHistory, ReplicationStatistics.ReplicationMode channelType, Object customBacklogMetadata, String tag) AsyncReplicationSourceChannel(DynamicSourceGroupConfigHolder groupConfig, String groupName, String memberName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationGroupBacklog groupBacklog, IReplicationOutFilter outFilter, int batchSize, long intervalMilis, int intervalOperations, IAsyncHandlerProvider asyncHandlerProvider, IReplicationChannelDataFilter dataFilter, IReplicationSourceGroupStateListener stateListener, IReplicationGroupHistory groupHistory, ReplicationStatistics.ReplicationMode channelType, Object customBacklogMetadata, String tag, boolean resetTarget) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidexecute(IReplicationGroupOutContext groupContext) voidintprotected List<IReplicationOrderedPacket>protected voidprotected voidonAsyncReplicateErrorResult(Throwable t, IReplicationOrderedPacket finalPacket) protected voidonAsyncReplicateErrorResult(Throwable t, List<IReplicationOrderedPacket> finalPackets) protected voidprotected voidstart()Methods inherited from class com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceChannel
beginSynchronizing, beginSynchronizing, close, dispatchBacklogDropped, dumpState, getChannelState, getConnection, getDataFilter, getGroupBacklog, getGroupName, getInconsistencyReason, getLastSampledTP, getMemberName, getMyLookupName, getPendingPackets, getSampleTPBefore, getStatistics, getTargetLogicalVersion, getTargetReplicationEndpointDetails, isActive, isClosed, isDataFiltered, isInconsistent, isSynchronizing, logEventInHistory, onConnected, onDisconnected, onDumpState, pingTarget, registerWith, replicate, replicate, replicateAsync, replicateAsync, replicateBatch, replicateBatchDelayed, replicateBatchDelayedAsync, sampleStatistics, signalSynchronizingDone, stopSynchronization, synchronizationCopyStageDone, synchronizationDataGenerated, wrapConnection
-
Constructor Details
-
AsyncReplicationSourceChannel
public AsyncReplicationSourceChannel(DynamicSourceGroupConfigHolder groupConfig, String groupName, String memberName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationGroupBacklog groupBacklog, IReplicationOutFilter outFilter, int batchSize, long intervalMilis, int intervalOperations, IAsyncHandlerProvider asyncHandlerProvider, IReplicationChannelDataFilter dataFilter, IReplicationSourceGroupStateListener stateListener, IReplicationGroupHistory groupHistory, ReplicationStatistics.ReplicationMode channelType, Object customBacklogMetadata, String tag) -
AsyncReplicationSourceChannel
public AsyncReplicationSourceChannel(DynamicSourceGroupConfigHolder groupConfig, String groupName, String memberName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationGroupBacklog groupBacklog, IReplicationOutFilter outFilter, int batchSize, long intervalMilis, int intervalOperations, IAsyncHandlerProvider asyncHandlerProvider, IReplicationChannelDataFilter dataFilter, IReplicationSourceGroupStateListener stateListener, IReplicationGroupHistory groupHistory, ReplicationStatistics.ReplicationMode channelType, Object customBacklogMetadata, String tag, boolean resetTarget) -
AsyncReplicationSourceChannel
public AsyncReplicationSourceChannel(DynamicSourceGroupConfigHolder groupConfig, String groupName, String memberName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationGroupBacklog groupBacklog, IReplicationOutFilter outFilter, int batchSize, long intervalMilis, int intervalOperations, IAsyncHandlerProvider asyncHandlerProvider, boolean autoStart, IReplicationChannelDataFilter dataFilter, IReplicationSourceGroupStateListener stateListener, IReplicationGroupHistory groupHistory, ReplicationStatistics.ReplicationMode channelType, Object customBacklogMetadata, String tag, boolean resetTarget)
-
-
Method Details
-
start
protected void start()- Overrides:
startin classAbstractReplicationSourceChannel
-
getBatchSize
public int getBatchSize() -
onActiveImpl
protected void onActiveImpl()- Specified by:
onActiveImplin classAbstractReplicationSourceChannel
-
onDisconnectedImpl
protected void onDisconnectedImpl()- Specified by:
onDisconnectedImplin classAbstractReplicationSourceChannel
-
closeImpl
protected void closeImpl()- Specified by:
closeImplin classAbstractReplicationSourceChannel
-
execute
-
getPendingPackets
-
flushPendingReplication
public void flushPendingReplication()- Specified by:
flushPendingReplicationin classAbstractReplicationSourceChannel
-
getChannelOpertingMode
- Specified by:
getChannelOpertingModein classAbstractReplicationSourceChannel
-
onAsyncReplicateErrorResult
- Specified by:
onAsyncReplicateErrorResultin classAbstractReplicationSourceChannel
-
onAsyncReplicateErrorResult
protected void onAsyncReplicateErrorResult(Throwable t, List<IReplicationOrderedPacket> finalPackets) - Specified by:
onAsyncReplicateErrorResultin classAbstractReplicationSourceChannel
-