public abstract class AbstractGlobalOrderTargetProcessLog extends AbstractSingleFileTargetProcessLog implements IReplicationTargetProcessLog
Modifier and Type | Field and Description |
---|---|
protected long |
_lastProcessedKey |
protected Object |
_lifeCycleLock |
protected Lock |
_lock |
_dataConsumer, _specificLogger
Constructor and Description |
---|
AbstractGlobalOrderTargetProcessLog(IReplicationPacketDataConsumer dataConsumer,
IReplicationProcessLogExceptionHandler exceptionHandler,
IReplicationInFacade replicationInFacade,
String name,
String groupName,
String sourceLookupName,
long lastProcessedKey,
boolean firstHandshakeForTarget,
IReplicationGroupHistory groupHistory) |
contentRequiredWhileProcessing, createReplicationInContext, getDataConsumer, getExceptionHandler, getGroupHistory, getGroupName, getReplicationInContext, getReplicationInFacade, getSourceLookupName, throwIfRepetitiveError, toLogMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataConsumer, process, processBatch, toLogMessage
protected final Object _lifeCycleLock
protected final Lock _lock
protected long _lastProcessedKey
public AbstractGlobalOrderTargetProcessLog(IReplicationPacketDataConsumer dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String name, String groupName, String sourceLookupName, long lastProcessedKey, boolean firstHandshakeForTarget, IReplicationGroupHistory groupHistory)
public long getLastProcessedKey()
public boolean isFirstHandshakeForTarget()
public GlobalOrderProcessLogHandshakeResponse performHandshake(String memberName, IBacklogHandshakeRequest handshakeRequest) throws IncomingReplicationOutOfSyncException
performHandshake
in interface IReplicationTargetProcessLog
IncomingReplicationOutOfSyncException
protected boolean canResetState()
protected void throwClosedException()
protected void filterDuplicate(List<IReplicationOrderedPacket> packets)
protected boolean filterDuplicate(IReplicationOrderedPacket packet)
public boolean close(long time, TimeUnit unit) throws InterruptedException
close
in interface IReplicationTargetProcessLog
InterruptedException
protected boolean isOpen()
protected boolean isClosed()
protected abstract void onClose()
public IProcessLogHandshakeResponse resync(IBacklogHandshakeRequest handshakeRequest)
resync
in interface IReplicationTargetProcessLog
public void processHandshakeIteration(String sourceMemberName, IHandshakeIteration handshakeIteration)
processHandshakeIteration
in interface IReplicationTargetProcessLog
public Object toWireForm(IProcessResult processResult)
toWireForm
in interface IReplicationTargetProcessLog
protected void logDeletion(GlobalOrderDeletedBacklogPacket deletedBacklogPacket)
public String dumpState()
dumpState
in interface IReplicationTargetProcessLog
dumpState
in class AbstractSingleFileTargetProcessLog
protected String dumpStateExtra()
public IProcessResult processIdleStateData(String string, IIdleStateData idleStateData, IReplicationInFilterCallback inFilterCallback)
processIdleStateData
in interface IReplicationTargetProcessLog
Copyright © GigaSpaces.