public class SyncReplicationSourceGroup extends AbstractReplicationSourceGroup<SourceGroupConfig> implements IReplicationSourceGroup
_channelCreationLock, _specificLogger
Constructor and Description |
---|
SyncReplicationSourceGroup(DynamicSourceGroupConfigHolder groupConfig,
IReplicationRouter replicationRouter,
IReplicationOutFilter outFilter,
IReplicationThrottleControllerBuilder throttleControllerBuilder,
IAsyncHandlerProvider asyncStateHandlerProvider,
int asyncStateBatchSize,
long idleDelayMilis,
IReplicationSyncGroupBacklog groupBacklog,
String myLookupName,
IReplicationSourceGroupStateListener stateListener,
ReplicationStatistics.ReplicationMode channelType) |
Modifier and Type | Method and Description |
---|---|
void |
beforeExecute(ReplicationOutContext replicationContext,
IEntryHolder entryHolder,
ReplicationSingleOperationType operationType)
Creates a single entry holder operation replication data from the given properties and add it
to the provided context
|
void |
beforeExecuteGeneric(ReplicationOutContext replicationContext,
Object operationData,
ReplicationSingleOperationType operationType)
Create a single type descriptor operation replication data and add it to provided context
|
void |
beforeTransactionExecute(ReplicationOutContext replicationContext,
ServerTransaction transaction,
ArrayList<IEntryHolder> lockedEntries,
ReplicationMultipleOperationType operationType)
Creates transaction replication data and adds it to the provided context
|
protected AbstractReplicationSourceChannel |
createChannel(String memberLookupName,
IReplicationRouter replicationRouter,
IReplicationMonitoredConnection connection,
IReplicationChannelDataFilter dataFilter,
IReplicationGroupHistory groupHistory,
boolean dynamicMember,
SourceGroupConfig groupConfig,
Object customBacklogMetadata,
boolean resetTarget) |
int |
executeImpl(IReplicationGroupOutContext groupContext) |
protected AbstractReplicationSourceChannel |
getChannel(String memberLookupName) |
boolean |
isSingleTarget() |
protected void |
onCloseTemporaryChannel(String sourceMemberName,
AbstractReplicationSourceChannel channel) |
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, validateGroupConsistencyLevelPolicy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginSynchronizing, beginSynchronizing, checkChannelConnected, close, closeTemporaryChannel, createTemporaryChannel, dumpState, execute, execute, flushPendingReplication, getChannelEndpointDetails, getChannelsStatus, getConfigHolder, getGroupBacklog, getGroupName, getStatistics, monitorConsistencyLevel, registerWith, sampleStatistics, setActive, setPassive, stopSynchronization, synchronizationCopyStageDone, synchronizationDataGenerated
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)
public void beforeExecute(ReplicationOutContext replicationContext, IEntryHolder entryHolder, ReplicationSingleOperationType operationType)
IReplicationSourceGroup
beforeExecute
in interface IReplicationSourceGroup
replicationContext
- context to attach the replication data toentryHolder
- the entry holder dataoperationType
- the operation typepublic void beforeTransactionExecute(ReplicationOutContext replicationContext, ServerTransaction transaction, ArrayList<IEntryHolder> lockedEntries, ReplicationMultipleOperationType operationType)
IReplicationSourceGroup
beforeTransactionExecute
in interface IReplicationSourceGroup
public void beforeExecuteGeneric(ReplicationOutContext replicationContext, Object operationData, ReplicationSingleOperationType operationType)
IReplicationSourceGroup
beforeExecuteGeneric
in interface IReplicationSourceGroup
public int executeImpl(IReplicationGroupOutContext groupContext)
executeImpl
in class AbstractReplicationSourceGroup<SourceGroupConfig>
protected AbstractReplicationSourceChannel createChannel(String memberLookupName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationChannelDataFilter dataFilter, IReplicationGroupHistory groupHistory, boolean dynamicMember, SourceGroupConfig groupConfig, Object customBacklogMetadata, boolean resetTarget)
createChannel
in class AbstractReplicationSourceGroup<SourceGroupConfig>
protected void onCloseTemporaryChannel(String sourceMemberName, AbstractReplicationSourceChannel channel)
onCloseTemporaryChannel
in class AbstractReplicationSourceGroup<SourceGroupConfig>
protected AbstractReplicationSourceChannel getChannel(String memberLookupName)
getChannel
in class AbstractReplicationSourceGroup<SourceGroupConfig>
public boolean isSingleTarget()
Copyright © GigaSpaces.