public class ReliableAsyncReplicationSourceGroup extends AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig> implements IReplicationBacklogStateListener
Modifier and Type | Class and Description |
---|---|
class |
ReliableAsyncReplicationSourceGroup.AsyncCompletionNotifier |
_channelCreationLock, _specificLogger
Constructor and Description |
---|
ReliableAsyncReplicationSourceGroup(DynamicSourceGroupConfigHolder groupConfig,
IReplicationRouter replicationRouter,
IReplicationReliableAsyncGroupBacklog groupBacklog,
String myLookupName,
IReplicationOutFilter outFilter,
IReplicationThrottleControllerBuilder throttleController,
IAsyncHandlerProvider asyncHandlerProvider,
int syncChannelAsyncStateBatchSize,
long syncChannelIdleDelayMilis,
int asyncChannelBatchSize,
long asyncChannelInterval,
int asyncChannelIntervalOperations,
IReplicationSourceGroupStateListener stateListener) |
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) |
void |
execute(IReplicationUnreliableOperation operation) |
int |
executeImpl(IReplicationGroupOutContext groupContext) |
protected AbstractReplicationSourceChannel |
getChannel(String memberLookupName) |
protected String[] |
getPotentialRemovedMembers(SourceGroupConfig config) |
boolean |
isSingleTarget() |
void |
monitorConsistencyLevel()
Monitors sla state of the replication group
|
protected void |
notifyKeepersOfGroupMembersChange(SourceGroupConfig newConfig) |
protected void |
onClose() |
protected void |
onCloseTemporaryChannel(String sourceMemberName,
AbstractReplicationSourceChannel channel) |
protected void |
onMemberAdded(MemberAddedEvent memberAddedEvent,
SourceGroupConfig newConfig) |
protected void |
onMemberRemoved(String memberName,
SourceGroupConfig newConfig) |
void |
onPacketsClearedAfterConfirmation(long packetsCount) |
void |
setActive(MetricRegistrator metricRegistrator) |
void |
setPassive(boolean closeProxy) |
protected void |
validateGroupConsistencyLevelPolicy(GroupConsistencyLevelPolicy groupSlaPolicy,
ReliableAsyncSourceGroupConfig sourceGroupConfig) |
beginSynchronizing, beginSynchronizing, checkChannelConnected, close, closeReplicationChannels, closeTemporaryChannel, createChannel, createReplicationChannels, createTemporaryChannel, dumpState, execute, flushPendingReplication, getAsyncHandlerProvider, getChannelEndpointDetails, getChannelHistory, getChannels, getChannelSafe, getChannelsStatus, getConfigHolder, getGroupBacklog, getGroupName, getLogPrefix, getMyLookupName, getOutFilter, getStateListener, getStatistics, logEvent, logGroupEvent, memberAdded, memberRemoved, outputDescendingEvents, registerWith, sampleStatistics, scanAndRemoveDroppedMembers, stopSynchronization, synchronizationCopyStageDone, synchronizationDataGenerated
public ReliableAsyncReplicationSourceGroup(DynamicSourceGroupConfigHolder groupConfig, IReplicationRouter replicationRouter, IReplicationReliableAsyncGroupBacklog groupBacklog, String myLookupName, IReplicationOutFilter outFilter, IReplicationThrottleControllerBuilder throttleController, IAsyncHandlerProvider asyncHandlerProvider, int syncChannelAsyncStateBatchSize, long syncChannelIdleDelayMilis, int asyncChannelBatchSize, long asyncChannelInterval, int asyncChannelIntervalOperations, IReplicationSourceGroupStateListener stateListener)
protected AbstractReplicationSourceChannel createChannel(String memberLookupName, IReplicationRouter replicationRouter, IReplicationMonitoredConnection connection, IReplicationChannelDataFilter dataFilter, IReplicationGroupHistory groupHistory, boolean dynamicMember, SourceGroupConfig groupConfig, Object customBacklogMetadata)
createChannel
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
protected void onCloseTemporaryChannel(String sourceMemberName, AbstractReplicationSourceChannel channel)
onCloseTemporaryChannel
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
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 beforeExecuteGeneric(ReplicationOutContext replicationContext, Object operationData, ReplicationSingleOperationType operationType)
IReplicationSourceGroup
beforeExecuteGeneric
in interface IReplicationSourceGroup
public void beforeTransactionExecute(ReplicationOutContext replicationContext, ServerTransaction transaction, ArrayList<IEntryHolder> lockedEntries, ReplicationMultipleOperationType operationType)
IReplicationSourceGroup
beforeTransactionExecute
in interface IReplicationSourceGroup
public int executeImpl(IReplicationGroupOutContext groupContext)
executeImpl
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
public void execute(IReplicationUnreliableOperation operation)
execute
in interface IReplicationSourceGroup
execute
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
protected void validateGroupConsistencyLevelPolicy(GroupConsistencyLevelPolicy groupSlaPolicy, ReliableAsyncSourceGroupConfig sourceGroupConfig)
public void monitorConsistencyLevel() throws ConsistencyLevelViolationException
IReplicationSourceGroup
monitorConsistencyLevel
in interface IReplicationSourceGroup
monitorConsistencyLevel
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
ConsistencyLevelViolationException
- if the sla is breachedprotected AbstractReplicationSourceChannel getChannel(String memberLookupName)
getChannel
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
protected void onMemberAdded(MemberAddedEvent memberAddedEvent, SourceGroupConfig newConfig)
onMemberAdded
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
protected void notifyKeepersOfGroupMembersChange(SourceGroupConfig newConfig)
protected void onMemberRemoved(String memberName, SourceGroupConfig newConfig)
onMemberRemoved
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
public void setActive(MetricRegistrator metricRegistrator)
setActive
in interface IReplicationSourceGroup
setActive
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
public void setPassive(boolean closeProxy)
setPassive
in interface IReplicationSourceGroup
setPassive
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
closeProxy
- - whether to close the stub proxy when it has no more references.protected void onClose()
onClose
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
public boolean isSingleTarget()
protected String[] getPotentialRemovedMembers(SourceGroupConfig config)
getPotentialRemovedMembers
in class AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
public void onPacketsClearedAfterConfirmation(long packetsCount)
onPacketsClearedAfterConfirmation
in interface IReplicationBacklogStateListener
Copyright © GigaSpaces.