public abstract class AbstractMultiBucketSingleFileTargetProcessLog extends AbstractSingleFileTargetProcessLog implements IMultiBucketSingleFileProcessLog
_dataConsumer, _specificLogger
Modifier | Constructor and Description |
---|---|
|
AbstractMultiBucketSingleFileTargetProcessLog(ProcessLogConfig config,
IReplicationPacketDataConsumer<?> dataConsumer,
IReplicationProcessLogExceptionHandler exceptionHandler,
IReplicationInFacade replicationInFacade,
String name,
String groupName,
String sourceLookupName,
IReplicationGroupHistory groupHistory) |
protected |
AbstractMultiBucketSingleFileTargetProcessLog(ProcessLogConfig config,
IReplicationPacketDataConsumer<?> dataConsumer,
IReplicationProcessLogExceptionHandler exceptionHandler,
IReplicationInFacade replicationInFacade,
String name,
String groupName,
String sourceLookupName,
long[] lastProcessedKeys,
long[] lastGlobalProcessedKeys,
boolean firstHandshakeForTarget,
IReplicationGroupHistory groupHistory) |
contentRequiredWhileProcessing, 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 AbstractMultiBucketSingleFileTargetProcessLog(ProcessLogConfig config, IReplicationPacketDataConsumer<?> dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String name, String groupName, String sourceLookupName, IReplicationGroupHistory groupHistory)
protected AbstractMultiBucketSingleFileTargetProcessLog(ProcessLogConfig config, IReplicationPacketDataConsumer<?> dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String name, String groupName, String sourceLookupName, long[] lastProcessedKeys, long[] lastGlobalProcessedKeys, boolean firstHandshakeForTarget, IReplicationGroupHistory groupHistory)
public ExecutorService getExecutorService()
public long[] getLastProcessedKeys()
public long[] getLastGlobalProcessedKeys()
public boolean isFirstHandshakeForTarget()
public MultiBucketSingleFileHandshakeResponse performHandshake(String memberName, IBacklogHandshakeRequest handshakeRequest) throws IncomingReplicationOutOfSyncException
performHandshake
in interface IReplicationTargetProcessLog
IncomingReplicationOutOfSyncException
protected boolean canResetState()
public void validateOpen()
public void validateNotClosed()
protected void throwClosedException()
public MultiBucketSingleFileProcessResult processBatch(String sourceLookupName, List<IReplicationOrderedPacket> packets, IReplicationInFilterCallback inFilterCallback)
processBatch
in interface IReplicationTargetProcessLog
public void createBatchParallelProcessingContinuationTask(String sourceLookupName, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext context, List<IReplicationOrderedPacket> batch, int segmentIndex)
public MultiBucketSingleFileProcessResult process(String sourceLookupName, IReplicationOrderedPacket packet, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext batchContext, int segmentIndex)
public MultiBucketSingleFileProcessResult process(String sourceLookupName, IReplicationOrderedPacket packet, IReplicationInFilterCallback inFilterCallback)
process
in interface IReplicationTargetProcessLog
public MultiBucketSingleFileProcessResult process(String sourceLookupName, ISingleBucketReplicationOrderedPacket packet, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext batchContext, int segmentIndex)
process
in interface IMultiBucketSingleFileProcessLog
public MultiBucketSingleFileProcessResult process(String sourceLookupName, MultipleBucketOrderedPacket packet, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext batchContext, int segmentIndex)
process
in interface IMultiBucketSingleFileProcessLog
public MultiBucketSingleFileProcessResult process(String sourceLookupName, DiscardedMultiBucketOrderedPacket packet, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext batchContext, int segmentIndex)
process
in interface IMultiBucketSingleFileProcessLog
public MultiBucketSingleFileProcessResult process(String sourceLookupName, DeletedMultiBucketOrderedPacket packet, IReplicationInFilterCallback inFilterCallback, ParallelBatchProcessingContext batchContext, int segmentIndex)
process
in interface IMultiBucketSingleFileProcessLog
public boolean close(long time, TimeUnit unit) throws InterruptedException
close
in interface IReplicationTargetProcessLog
InterruptedException
public long getConsumeTimeout()
public void processHandshakeIteration(String sourceMemberName, IHandshakeIteration handshakeIteration)
processHandshakeIteration
in interface IReplicationTargetProcessLog
protected boolean shouldCloneOnFilter()
protected void afterSuccessfulConsumption(String sourceLookupName, IReplicationOrderedPacket packet)
public IProcessLogHandshakeResponse resync(IBacklogHandshakeRequest handshakeRequest)
resync
in interface IReplicationTargetProcessLog
public Object toWireForm(IProcessResult processResult)
toWireForm
in interface IReplicationTargetProcessLog
public String dumpState()
dumpState
in interface IReplicationTargetProcessLog
dumpState
in class AbstractSingleFileTargetProcessLog
protected String dumpStateExtra()
public Logger getSpecificLogger()
public IProcessResult processIdleStateData(String string, IIdleStateData idleStateData, IReplicationInFilterCallback inFilterCallback)
processIdleStateData
in interface IReplicationTargetProcessLog
Copyright © GigaSpaces.