public class MultiBucketSingleFileBatchConsumeTargetProcessLog extends AbstractMultiBucketSingleFileTargetProcessLog implements IBatchExecutedCallback, IReplicationBatchConsumeAsyncTargetProcessLog
Modifier and Type | Field and Description |
---|---|
protected Lock |
_lock |
_dataConsumer, _specificLogger
Modifier | Constructor and Description |
---|---|
|
MultiBucketSingleFileBatchConsumeTargetProcessLog(ProcessLogConfig config,
IReplicationPacketDataBatchConsumer<?> dataConsumer,
IReplicationProcessLogExceptionHandler exceptionHandler,
IReplicationInFacade replicationInFacade,
String name,
String groupName,
String sourceLookupName,
IReplicationGroupHistory groupHistory) |
protected |
MultiBucketSingleFileBatchConsumeTargetProcessLog(ProcessLogConfig config,
IReplicationPacketDataBatchConsumer<?> dataConsumer,
IReplicationProcessLogExceptionHandler exceptionHandler,
IReplicationInFacade replicationInFacade,
String name,
String groupName,
String sourceLookupName,
long lastGlobalProcessedKey,
long[] lastProcessedKeys,
long[] lastGlobalProcessedKeys,
boolean firstHandshakeForTarget,
IReplicationGroupHistory groupHistory) |
Modifier and Type | Method and Description |
---|---|
void |
batchConsumed(ShortLongMap bucketProcessedKeys,
ShortLongMap bucketGlobalProcessedKeys,
long lastGlobalprocessedKey) |
protected boolean |
contentRequiredWhileProcessing() |
protected String |
dumpStateExtra() |
protected boolean |
filterDuplicate(IReplicationOrderedPacket packet) |
protected void |
filterDuplicate(List<IReplicationOrderedPacket> packets) |
long |
getLastGlobalProcessedKey() |
MultiBucketSingleFileHandshakeResponse |
performHandshake(String memberName,
IBacklogHandshakeRequest handshakeRequest) |
MultiBucketSingleFileProcessResult |
process(String sourceLookupName,
IReplicationOrderedPacket packet,
IReplicationInFilterCallback inFilterCallback) |
MultiBucketSingleFileProcessResult |
processBatch(String sourceLookupName,
List<IReplicationOrderedPacket> packets,
IReplicationInFilterCallback inFilterCallback) |
afterSuccessfulConsumption, canResetState, close, createBatchParallelProcessingContinuationTask, dumpState, getConsumeTimeout, getExecutorService, getLastGlobalProcessedKeys, getLastProcessedKeys, getSpecificLogger, isFirstHandshakeForTarget, process, process, process, process, process, processHandshakeIteration, processIdleStateData, resync, shouldCloneOnFilter, throwClosedException, toWireForm, validateNotClosed, validateOpen
createReplicationInContext, getDataConsumer, getExceptionHandler, getGroupHistory, getGroupName, getLogLevel, getReplicationInContext, getReplicationInFacade, getSourceLookupName, throwIfRepetitiveError, toLogMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, dumpState, getDataConsumer, processHandshakeIteration, processIdleStateData, resync, toLogMessage, toWireForm
protected final Lock _lock
public MultiBucketSingleFileBatchConsumeTargetProcessLog(ProcessLogConfig config, IReplicationPacketDataBatchConsumer<?> dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String name, String groupName, String sourceLookupName, IReplicationGroupHistory groupHistory)
protected MultiBucketSingleFileBatchConsumeTargetProcessLog(ProcessLogConfig config, IReplicationPacketDataBatchConsumer<?> dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String name, String groupName, String sourceLookupName, long lastGlobalProcessedKey, long[] lastProcessedKeys, long[] lastGlobalProcessedKeys, boolean firstHandshakeForTarget, IReplicationGroupHistory groupHistory)
protected boolean contentRequiredWhileProcessing()
contentRequiredWhileProcessing
in class AbstractSingleFileTargetProcessLog
public MultiBucketSingleFileHandshakeResponse performHandshake(String memberName, IBacklogHandshakeRequest handshakeRequest) throws IncomingReplicationOutOfSyncException
performHandshake
in interface IReplicationTargetProcessLog
performHandshake
in class AbstractMultiBucketSingleFileTargetProcessLog
IncomingReplicationOutOfSyncException
public MultiBucketSingleFileProcessResult processBatch(String sourceLookupName, List<IReplicationOrderedPacket> packets, IReplicationInFilterCallback inFilterCallback)
processBatch
in interface IReplicationTargetProcessLog
processBatch
in class AbstractMultiBucketSingleFileTargetProcessLog
public MultiBucketSingleFileProcessResult process(String sourceLookupName, IReplicationOrderedPacket packet, IReplicationInFilterCallback inFilterCallback)
process
in interface IReplicationTargetProcessLog
process
in class AbstractMultiBucketSingleFileTargetProcessLog
public void batchConsumed(ShortLongMap bucketProcessedKeys, ShortLongMap bucketGlobalProcessedKeys, long lastGlobalprocessedKey)
batchConsumed
in interface IBatchExecutedCallback
protected void filterDuplicate(List<IReplicationOrderedPacket> packets)
protected boolean filterDuplicate(IReplicationOrderedPacket packet)
public long getLastGlobalProcessedKey()
protected String dumpStateExtra()
dumpStateExtra
in class AbstractMultiBucketSingleFileTargetProcessLog
Copyright © GigaSpaces.