Class ReliableAsyncReplicationSourceGroup
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
com.gigaspaces.internal.cluster.node.impl.groups.reliableasync.ReliableAsyncReplicationSourceGroup
- All Implemented Interfaces:
IReplicationBacklogStateListener,DynamicSourceGroupConfigHolder.IDynamicSourceGroupStateListener,IReplicationGroupHistory,IReplicationSourceGroup
public class ReliableAsyncReplicationSourceGroup
extends AbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
implements IReplicationBacklogStateListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass -
Field Summary
Fields inherited from class com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceGroup
_channelCreationLock, _specificLogger -
Constructor Summary
ConstructorsConstructorDescriptionReliableAsyncReplicationSourceGroup(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) -
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) voidexecute(IReplicationUnreliableOperation operation) intexecuteImpl(IReplicationGroupOutContext groupContext) protected AbstractReplicationSourceChannelgetChannel(String memberLookupName) protected String[]booleanvoidMonitors sla state of the replication groupprotected voidprotected voidonClose()protected voidonCloseTemporaryChannel(String sourceMemberName, AbstractReplicationSourceChannel channel) protected voidonMemberAdded(MemberAddedEvent memberAddedEvent, SourceGroupConfig newConfig) protected voidonMemberRemoved(String memberName, SourceGroupConfig newConfig) voidonPacketsClearedAfterConfirmation(long packetsCount) voidsetActive(MetricRegistrator metricRegistrator) voidsetPassive(boolean closeProxy) protected voidvalidateGroupConsistencyLevelPolicy(GroupConsistencyLevelPolicy groupSlaPolicy, ReliableAsyncSourceGroupConfig sourceGroupConfig) Methods inherited from class com.gigaspaces.internal.cluster.node.impl.groups.AbstractReplicationSourceGroup
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
-
Constructor Details
-
ReliableAsyncReplicationSourceGroup
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)
-
-
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<ReliableAsyncSourceGroupConfig>
-
onCloseTemporaryChannel
protected void onCloseTemporaryChannel(String sourceMemberName, AbstractReplicationSourceChannel channel) - Specified by:
onCloseTemporaryChannelin classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
-
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
-
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
-
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
-
executeImpl
- Specified by:
executeImplin classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
-
execute
- Specified by:
executein interfaceIReplicationSourceGroup- Overrides:
executein classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
-
validateGroupConsistencyLevelPolicy
protected void validateGroupConsistencyLevelPolicy(GroupConsistencyLevelPolicy groupSlaPolicy, ReliableAsyncSourceGroupConfig sourceGroupConfig) -
monitorConsistencyLevel
Description copied from interface:IReplicationSourceGroupMonitors sla state of the replication group- Specified by:
monitorConsistencyLevelin interfaceIReplicationSourceGroup- Overrides:
monitorConsistencyLevelin classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>- Throws:
ConsistencyLevelViolationException- if the sla is breached
-
getChannel
- Overrides:
getChannelin classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
-
onMemberAdded
- Overrides:
onMemberAddedin classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
-
notifyKeepersOfGroupMembersChange
-
onMemberRemoved
- Overrides:
onMemberRemovedin classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
-
setActive
- Specified by:
setActivein interfaceIReplicationSourceGroup- Overrides:
setActivein classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
-
setPassive
public void setPassive(boolean closeProxy) - Specified by:
setPassivein interfaceIReplicationSourceGroup- Overrides:
setPassivein classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>- Parameters:
closeProxy- - whether to close the stub proxy when it has no more references.
-
onClose
protected void onClose()- Overrides:
onClosein classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
-
isSingleTarget
public boolean isSingleTarget() -
getPotentialRemovedMembers
- Overrides:
getPotentialRemovedMembersin classAbstractReplicationSourceGroup<ReliableAsyncSourceGroupConfig>
-
onPacketsClearedAfterConfirmation
public void onPacketsClearedAfterConfirmation(long packetsCount) - Specified by:
onPacketsClearedAfterConfirmationin interfaceIReplicationBacklogStateListener
-