Class MultiBucketSingleFileBatchConsumeTargetProcessLog
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.processlog.AbstractSingleFileTargetProcessLog
com.gigaspaces.internal.cluster.node.impl.processlog.multibucketsinglefile.AbstractMultiBucketSingleFileTargetProcessLog
com.gigaspaces.internal.cluster.node.impl.processlog.multibucketsinglefile.MultiBucketSingleFileBatchConsumeTargetProcessLog
- All Implemented Interfaces:
IReplicationAsyncTargetProcessLog,IReplicationBatchConsumeAsyncTargetProcessLog,IReplicationTargetProcessLog,IBatchExecutedCallback,IMultiBucketSingleFileProcessLog
- Direct Known Subclasses:
MultiBucketSingleFileReliableAsyncTargetProcessLog
public class MultiBucketSingleFileBatchConsumeTargetProcessLog
extends AbstractMultiBucketSingleFileTargetProcessLog
implements IBatchExecutedCallback, IReplicationBatchConsumeAsyncTargetProcessLog
-
Field Summary
FieldsFields inherited from class com.gigaspaces.internal.cluster.node.impl.processlog.AbstractSingleFileTargetProcessLog
_dataConsumer, _specificLogger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMultiBucketSingleFileBatchConsumeTargetProcessLog(ProcessLogConfig config, IReplicationPacketDataBatchConsumer<?> dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String name, String groupName, String sourceLookupName, long lastGlobalProcessedKey, long[] lastProcessedKeys, long[] lastGlobalProcessedKeys, boolean firstHandshakeForTarget, IReplicationGroupHistory groupHistory) MultiBucketSingleFileBatchConsumeTargetProcessLog(ProcessLogConfig config, IReplicationPacketDataBatchConsumer<?> dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String name, String groupName, String sourceLookupName, IReplicationGroupHistory groupHistory) -
Method Summary
Modifier and TypeMethodDescriptionvoidbatchConsumed(ShortLongMap bucketProcessedKeys, ShortLongMap bucketGlobalProcessedKeys, long lastGlobalprocessedKey) protected booleanprotected Stringprotected booleanprotected voidfilterDuplicate(List<IReplicationOrderedPacket> packets) longperformHandshake(String memberName, IBacklogHandshakeRequest handshakeRequest) process(String sourceLookupName, IReplicationOrderedPacket packet, IReplicationInFilterCallback inFilterCallback) processBatch(String sourceLookupName, List<IReplicationOrderedPacket> packets, IReplicationInFilterCallback inFilterCallback) Methods inherited from class com.gigaspaces.internal.cluster.node.impl.processlog.multibucketsinglefile.AbstractMultiBucketSingleFileTargetProcessLog
afterSuccessfulConsumption, canResetState, close, createBatchParallelProcessingContinuationTask, dumpState, getConsumeTimeout, getExecutorService, getLastGlobalProcessedKeys, getLastProcessedKeys, getSpecificLogger, isFirstHandshakeForTarget, process, process, process, process, process, processHandshakeIteration, processIdleStateData, resync, shouldCloneOnFilter, throwClosedException, toWireForm, validateNotClosed, validateOpenMethods inherited from class com.gigaspaces.internal.cluster.node.impl.processlog.AbstractSingleFileTargetProcessLog
createReplicationInContext, getDataConsumer, getExceptionHandler, getGroupHistory, getGroupName, getReplicationInContext, getReplicationInFacade, getSourceLookupName, throwIfRepetitiveError, toLogMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.internal.cluster.node.impl.processlog.IReplicationTargetProcessLog
close, dumpState, getDataConsumer, processHandshakeIteration, processIdleStateData, resync, toLogMessage, toWireForm
-
Field Details
-
_lock
-
-
Constructor Details
-
MultiBucketSingleFileBatchConsumeTargetProcessLog
public MultiBucketSingleFileBatchConsumeTargetProcessLog(ProcessLogConfig config, IReplicationPacketDataBatchConsumer<?> dataConsumer, IReplicationProcessLogExceptionHandler exceptionHandler, IReplicationInFacade replicationInFacade, String name, String groupName, String sourceLookupName, IReplicationGroupHistory groupHistory) -
MultiBucketSingleFileBatchConsumeTargetProcessLog
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)
-
-
Method Details
-
contentRequiredWhileProcessing
protected boolean contentRequiredWhileProcessing()- Specified by:
contentRequiredWhileProcessingin classAbstractSingleFileTargetProcessLog
-
performHandshake
public MultiBucketSingleFileHandshakeResponse performHandshake(String memberName, IBacklogHandshakeRequest handshakeRequest) throws IncomingReplicationOutOfSyncException - Specified by:
performHandshakein interfaceIReplicationTargetProcessLog- Overrides:
performHandshakein classAbstractMultiBucketSingleFileTargetProcessLog- Throws:
IncomingReplicationOutOfSyncException
-
processBatch
public MultiBucketSingleFileProcessResult processBatch(String sourceLookupName, List<IReplicationOrderedPacket> packets, IReplicationInFilterCallback inFilterCallback) - Specified by:
processBatchin interfaceIReplicationTargetProcessLog- Overrides:
processBatchin classAbstractMultiBucketSingleFileTargetProcessLog
-
process
public MultiBucketSingleFileProcessResult process(String sourceLookupName, IReplicationOrderedPacket packet, IReplicationInFilterCallback inFilterCallback) - Specified by:
processin interfaceIReplicationTargetProcessLog- Overrides:
processin classAbstractMultiBucketSingleFileTargetProcessLog
-
batchConsumed
public void batchConsumed(ShortLongMap bucketProcessedKeys, ShortLongMap bucketGlobalProcessedKeys, long lastGlobalprocessedKey) - Specified by:
batchConsumedin interfaceIBatchExecutedCallback
-
filterDuplicate
-
filterDuplicate
-
getLastGlobalProcessedKey
public long getLastGlobalProcessedKey() -
dumpStateExtra
- Overrides:
dumpStateExtrain classAbstractMultiBucketSingleFileTargetProcessLog
-