public abstract class AbstractReplicationTargetGroup extends Object implements IReplicationTargetGroup, IReplicationGroupHistory
Modifier and Type | Field and Description |
---|---|
protected int |
_channelCloseTimeout |
protected static org.slf4j.Logger |
_loggerReplica |
protected org.slf4j.Logger |
_specificLogger |
Constructor and Description |
---|
AbstractReplicationTargetGroup(TargetGroupConfig groupConfig,
IReplicationRouter replicationRouter,
IReplicationInFacade replicationInFacade,
IReplicationInFilter inFilter,
IReplicationTargetGroupStateListener stateListener) |
protected static final org.slf4j.Logger _loggerReplica
protected final org.slf4j.Logger _specificLogger
protected final int _channelCloseTimeout
public AbstractReplicationTargetGroup(TargetGroupConfig groupConfig, IReplicationRouter replicationRouter, IReplicationInFacade replicationInFacade, IReplicationInFilter inFilter, IReplicationTargetGroupStateListener stateListener)
public void logEvent(String memberName, String event)
logEvent
in interface IReplicationGroupHistory
public void logGroupEvent(String event)
logGroupEvent
in interface IReplicationGroupHistory
public String outputDescendingEvents(String memberName)
outputDescendingEvents
in interface IReplicationGroupHistory
protected IReplicationRouter getReplicationRouter()
public IReplicationTargetChannel getChannel(String sourceMemberLookupName)
getChannel
in interface IReplicationTargetGroup
public ConnectChannelHandshakeResponse connectChannel(RouterStubHolder sourceRouterStubHolder, ConnectChannelHandshakeRequest handshakeRequest)
IReplicationTargetGroup
IReplicationSourceChannel
to this group. The success or failure of this
operation is indicated by the result IProcessLogHandshakeResponse
connectChannel
in interface IReplicationTargetGroup
handshakeRequest
- the handshake related detailsIProcessLogHandshakeResponse
public void onChannelBacklogDropped(String sourceMemberLookupName, Object sourceUniqueId, IBacklogMemberState memberState)
onChannelBacklogDropped
in interface IReplicationTargetGroup
public void processHandshakeIteration(String sourceMemberLookupName, Object sourceUniqueId, IHandshakeIteration handshakeIteration)
processHandshakeIteration
in interface IReplicationTargetGroup
protected abstract AbstractReplicationTargetChannel createNewChannelImpl(ReplicationEndpointDetails sourceEndpointDetails, IReplicationMonitoredConnection sourceConnection, IBacklogHandshakeRequest handshakeRequest, IReplicationGroupHistory groupHistory)
public Object processBatch(String sourceMemberLookupName, Object sourceUniqueId, List<IReplicationOrderedPacket> packets)
processBatch
in interface IReplicationTargetGroup
public Object processIdleStateData(String sourceMemberLookupName, Object sourceUniqueId, IIdleStateData idleStateData)
processIdleStateData
in interface IReplicationTargetGroup
public Object process(String sourceMemberLookupName, Object sourceUniqueId, IReplicationOrderedPacket packet)
process
in interface IReplicationTargetGroup
public void processUnreliableOperation(String sourceMemberLookupName, Object sourceUniqueId, IReplicationUnreliableOperation operation)
processUnreliableOperation
in interface IReplicationTargetGroup
public String getGroupName()
getGroupName
in interface IReplicationTargetGroup
public IReplicationInFilter getInFilter()
public TargetGroupConfig getGroupConfig()
protected void closeChannel(AbstractReplicationTargetChannel channel)
public void close()
IReplicationTargetGroup
close
in interface IReplicationTargetGroup
public long getLastProcessTimeStamp(String replicaSourceLookupName)
getLastProcessTimeStamp
in interface IReplicationTargetGroup
public void addSynchronizeState(String sourceMemberLookupName, SpaceReplicaState spaceReplicaState)
addSynchronizeState
in interface IReplicationTargetGroup
public void synchronizationDone(String sourceMemberLookupName, Object sourceUniqueId)
synchronizationDone
in interface IReplicationTargetGroup
public boolean isFiltered()
public IReplicationTargetGroupStateListener getStateListener()
public void setActive()
setActive
in interface IReplicationTargetGroup
public void setPassive()
setPassive
in interface IReplicationTargetGroup
protected abstract void validateConnectChannelImpl(String sourceMemberLookupName)
public IReplicationInFacade getReplicationInFacade()
public String dumpState()
dumpState
in interface IReplicationTargetGroup
Copyright © GigaSpaces.