Class SyncReplicationSourceGroup
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceGroup<SourceGroupConfig>
com.gigaspaces.internal.cluster.node.impl.groups.sync.SyncReplicationSourceGroup
- All Implemented Interfaces:
DynamicSourceGroupConfigHolder.IDynamicSourceGroupStateListener,IReplicationGroupHistory,IReplicationSourceGroup
public class SyncReplicationSourceGroup
extends AbstractReplicationSourceGroup<SourceGroupConfig>
implements IReplicationSourceGroup
-
Field Summary
Fields inherited from class com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceGroup
_channelCreationLock, _specificLogger -
Constructor Summary
ConstructorsConstructorDescriptionSyncReplicationSourceGroup(DynamicSourceGroupConfigHolder groupConfig, IReplicationRouter replicationRouter, IReplicationOutFilter outFilter, IReplicationThrottleControllerBuilder throttleControllerBuilder, IAsyncHandlerProvider asyncStateHandlerProvider, int asyncStateBatchSize, long idleDelayMilis, IReplicationSyncGroupBacklog groupBacklog, String myLookupName, IReplicationSourceGroupStateListener stateListener, ReplicationStatistics.ReplicationMode channelType) -
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) booleanprotected 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, getPotentialRemovedMembers, getStateListener, getStatistics, logEvent, logGroupEvent, memberAdded, memberRemoved, monitorConsistencyLevel, onClose, 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
-
SyncReplicationSourceGroup
public SyncReplicationSourceGroup(DynamicSourceGroupConfigHolder groupConfig, IReplicationRouter replicationRouter, IReplicationOutFilter outFilter, IReplicationThrottleControllerBuilder throttleControllerBuilder, IAsyncHandlerProvider asyncStateHandlerProvider, int asyncStateBatchSize, long idleDelayMilis, IReplicationSyncGroupBacklog groupBacklog, String myLookupName, IReplicationSourceGroupStateListener stateListener, ReplicationStatistics.ReplicationMode channelType)
-
-
Method Details
-
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>
-
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>
-
getChannel
- Overrides:
getChannelin classAbstractReplicationSourceGroup<SourceGroupConfig>
-
isSingleTarget
public boolean isSingleTarget()
-