Class AsyncReplicationSourceGroup
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceGroup<SourceGroupConfig>
com.gigaspaces.internal.cluster.node.impl.groups.async.AsyncReplicationSourceGroup
- All Implemented Interfaces:
DynamicSourceGroupConfigHolder.IDynamicSourceGroupStateListener,IReplicationGroupHistory,IReplicationSourceGroup
public class AsyncReplicationSourceGroup
extends AbstractReplicationSourceGroup<SourceGroupConfig>
implements IReplicationSourceGroup
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceGroup
_channelCreationLock, _specificLogger -
Constructor Summary
ConstructorsConstructorDescriptionAsyncReplicationSourceGroup(DynamicSourceGroupConfigHolder groupConfig, IReplicationRouter replicationRouter, IReplicationAsyncGroupBacklog groupBacklog, String myLookupName, IReplicationOutFilter outFilter, int batchSize, long intervalMilis, int intervalOperations, IAsyncHandlerProvider asyncProvider, IReplicationSourceGroupStateListener stateListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeExecute(ReplicationOutContext replicationContext, IEntryHolder entryHolder, ReplicationSingleOperationType operationType) Creates a single entry holder operation replication data from the given properties and add it to the provided contextvoidbeforeExecuteGeneric(ReplicationOutContext replicationContext, Object operationData, ReplicationSingleOperationType operationType) Create a single type descriptor operation replication data and add it to provided contextvoidbeforeTransactionExecute(ReplicationOutContext replicationContext, ServerTransaction transaction, ArrayList<IEntryHolder> lockedEntries, ReplicationMultipleOperationType operationType) Creates transaction replication data and adds it to the provided contextprotected AbstractReplicationSourceChannelcreateChannel(String memberLookupName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationChannelDataFilter dataFilter, IReplicationGroupHistory groupHistory, boolean dynamicMember, SourceGroupConfig groupConfig, Object customBacklogMetadata, boolean resetTarget) intexecuteImpl(IReplicationGroupOutContext groupContext) protected AbstractReplicationSourceChannelgetChannel(String memberLookupName) protected String[]protected voidonClose()protected voidonCloseTemporaryChannel(String sourceMemberName, AbstractReplicationSourceChannel channel) Methods inherited from class com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceGroup
beginSynchronizing, beginSynchronizing, checkChannelConnected, close, closeReplicationChannels, closeTemporaryChannel, createChannel, createReplicationChannels, createTemporaryChannel, dumpState, execute, execute, flushPendingReplication, getAsyncHandlerProvider, getChannelEndpointDetails, getChannelHistory, getChannels, getChannelSafe, getChannelsStatus, getConfigHolder, getGroupBacklog, getGroupName, getLogPrefix, getMyLookupName, getOutFilter, getStateListener, getStatistics, logEvent, logGroupEvent, memberAdded, memberRemoved, monitorConsistencyLevel, onMemberAdded, onMemberRemoved, outputDescendingEvents, registerWith, sampleStatistics, scanAndRemoveDroppedMembers, setActive, setPassive, stopSynchronization, synchronizationCopyStageDone, synchronizationDataGenerated, validateGroupConsistencyLevelPolicyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.internal.cluster.node.impl.groups.IReplicationSourceGroup
beginSynchronizing, beginSynchronizing, checkChannelConnected, close, closeTemporaryChannel, createTemporaryChannel, dumpState, execute, execute, flushPendingReplication, getChannelEndpointDetails, getChannelsStatus, getConfigHolder, getGroupBacklog, getGroupName, getStatistics, monitorConsistencyLevel, registerWith, sampleStatistics, setActive, setPassive, stopSynchronization, synchronizationCopyStageDone, synchronizationDataGenerated
-
Constructor Details
-
AsyncReplicationSourceGroup
public AsyncReplicationSourceGroup(DynamicSourceGroupConfigHolder groupConfig, IReplicationRouter replicationRouter, IReplicationAsyncGroupBacklog groupBacklog, String myLookupName, IReplicationOutFilter outFilter, int batchSize, long intervalMilis, int intervalOperations, IAsyncHandlerProvider asyncProvider, IReplicationSourceGroupStateListener stateListener)
-
-
Method Details
-
createChannel
protected AbstractReplicationSourceChannel createChannel(String memberLookupName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationChannelDataFilter dataFilter, IReplicationGroupHistory groupHistory, boolean dynamicMember, SourceGroupConfig groupConfig, Object customBacklogMetadata, boolean resetTarget) - Specified by:
createChannelin classAbstractReplicationSourceGroup<SourceGroupConfig>
-
onCloseTemporaryChannel
protected void onCloseTemporaryChannel(String sourceMemberName, AbstractReplicationSourceChannel channel) - Specified by:
onCloseTemporaryChannelin classAbstractReplicationSourceGroup<SourceGroupConfig>
-
beforeExecute
public void beforeExecute(ReplicationOutContext replicationContext, IEntryHolder entryHolder, ReplicationSingleOperationType operationType) Description copied from interface:IReplicationSourceGroupCreates a single entry holder operation replication data from the given properties and add it to the provided context- Specified by:
beforeExecutein interfaceIReplicationSourceGroup- Parameters:
replicationContext- context to attach the replication data toentryHolder- the entry holder dataoperationType- the operation type
-
beforeTransactionExecute
public void beforeTransactionExecute(ReplicationOutContext replicationContext, ServerTransaction transaction, ArrayList<IEntryHolder> lockedEntries, ReplicationMultipleOperationType operationType) Description copied from interface:IReplicationSourceGroupCreates transaction replication data and adds it to the provided context- Specified by:
beforeTransactionExecutein interfaceIReplicationSourceGroup
-
beforeExecuteGeneric
public void beforeExecuteGeneric(ReplicationOutContext replicationContext, Object operationData, ReplicationSingleOperationType operationType) Description copied from interface:IReplicationSourceGroupCreate a single type descriptor operation replication data and add it to provided context- Specified by:
beforeExecuteGenericin interfaceIReplicationSourceGroup
-
executeImpl
- Specified by:
executeImplin classAbstractReplicationSourceGroup<SourceGroupConfig>
-
getChannel
- Overrides:
getChannelin classAbstractReplicationSourceGroup<SourceGroupConfig>
-
getPotentialRemovedMembers
- Overrides:
getPotentialRemovedMembersin classAbstractReplicationSourceGroup<SourceGroupConfig>
-
onClose
protected void onClose()- Overrides:
onClosein classAbstractReplicationSourceGroup<SourceGroupConfig>
-