public class MultiSourceSingleFileReliableAsyncTargetProcessLog extends AbstractSingleFileTargetProcessLog implements IReplicationReliableAsyncTargetProcessLog, IPacketConsumedCallback
IReplicationParticipantsMediator
component implementation._specificLogger
createReplicationInContext, getDataConsumer, getExceptionHandler, getGroupHistory, getGroupName, getLogLevel, getReplicationInContext, getReplicationInFacade, getSourceLookupName, throwIfRepetitiveError, toLogMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataConsumer, toLogMessage
public MultiSourceSingleFileReliableAsyncTargetProcessLog(MultiSourceSingleFileProcessLogConfig processLogConfig, IReplicationPacketDataBatchConsumer<?> dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String name, String groupName, String sourceLookupName, boolean firstHandshakeForTarget, IReplicationGroupHistory groupHistory, IReplicationParticipantsMediator participantsMediator, IProcessMemoryManager processMemoryManager)
public MultiSourceSingleFileReliableAsyncTargetProcessLog(MultiSourceSingleFileProcessLogConfig processLogConfig, IReplicationPacketDataBatchConsumer<?> dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String myLookupName, String groupName, String sourceLookupName, boolean firstHandshakeForTarget, IReplicationGroupHistory groupHistory, IReplicationParticipantsMediator participantsMediator, long lastProcessedKey, long firstUnprocessedKey, LinkedList<MultiSourceProcessLogPacket> pendingPacketsQueue, HashMap<String,MultiSourceProcessLogPacket> packetsByUidHelperMap, IProcessMemoryManager processMemoryManager)
protected boolean contentRequiredWhileProcessing()
contentRequiredWhileProcessing
in class AbstractSingleFileTargetProcessLog
public GlobalOrderProcessLogHandshakeResponse performHandshake(String memberName, IBacklogHandshakeRequest handshakeRequest) throws IncomingReplicationOutOfSyncException
performHandshake
in interface IReplicationTargetProcessLog
IncomingReplicationOutOfSyncException
public IProcessResult processBatch(String sourceLookupName, List<IReplicationOrderedPacket> packets, IReplicationInFilterCallback inFilterCallback)
processBatch
in interface IReplicationTargetProcessLog
protected void logDeletion(GlobalOrderDeletedBacklogPacket deletedBacklogPacket)
protected void filterDuplicate(List<IReplicationOrderedPacket> packets)
protected boolean filterDuplicate(IReplicationOrderedPacket packet)
protected void throwClosedException()
public IProcessResult process(String sourceLookupName, IReplicationOrderedPacket packet, IReplicationInFilterCallback inFilterCallback)
process
in interface IReplicationTargetProcessLog
public boolean close(long time, TimeUnit unit) throws InterruptedException
close
in interface IReplicationTargetProcessLog
InterruptedException
public void processHandshakeIteration(String sourceMemberName, IHandshakeIteration handshakeIteration)
processHandshakeIteration
in interface IReplicationTargetProcessLog
public IProcessLogHandshakeResponse resync(IBacklogHandshakeRequest handshakeRequest)
resync
in interface IReplicationTargetProcessLog
public Object toWireForm(IProcessResult processResult)
toWireForm
in interface IReplicationTargetProcessLog
protected boolean isOpen()
protected boolean isClosed()
public void packetConsumed(long key)
packetConsumed
in interface IPacketConsumedCallback
public String dumpState()
dumpState
in interface IReplicationTargetProcessLog
dumpState
in class AbstractSingleFileTargetProcessLog
public MultiSourceSingleFileProcessLogConfig getProcessLogConfig()
protected boolean isFirstHandshakeForTarget()
public long getLastProcessedKey()
public long getFirstUnprocessedKey()
public LinkedList<MultiSourceProcessLogPacket> getPendingPacketsQueue()
public HashMap<String,MultiSourceProcessLogPacket> getPacketsByUidHelperMap()
public IProcessResult processIdleStateData(String sourceLookupName, IIdleStateData idleStateData, IReplicationInFilterCallback inFilterCallback)
processIdleStateData
in interface IReplicationTargetProcessLog
Copyright © GigaSpaces.