Class BlobstorePrimaryBackupSpaceReplicationEntryEventHandler
java.lang.Object
com.gigaspaces.internal.cluster.node.handlers.AbstractReplicationEntryEventHandler
com.gigaspaces.internal.cluster.node.impl.handlers.AbstractSpaceReplicationEntryEventHandler
com.gigaspaces.internal.cluster.node.impl.handlers.PrimaryBackupSpaceReplicationEntryEventHandler
com.gigaspaces.internal.cluster.node.impl.handlers.BlobstorePrimaryBackupSpaceReplicationEntryEventHandler
- All Implemented Interfaces:
IReplicationInEntryHandler,IReplicationInEvictEntryHandler
public class BlobstorePrimaryBackupSpaceReplicationEntryEventHandler
extends PrimaryBackupSpaceReplicationEntryEventHandler
- Since:
- 11.0.0 Handles incoming blobstore bulks, flushes the previous bulk if a new bulk entry arrived or non bulk entry arrived.
- Author:
- Boris
-
Field Summary
Fields inherited from class com.gigaspaces.internal.cluster.node.impl.handlers.AbstractSpaceReplicationEntryEventHandler
_engine, _exceptionHandler -
Constructor Summary
ConstructorsConstructorDescriptionBlobstorePrimaryBackupSpaceReplicationEntryEventHandler(SpaceEngine engine, boolean isCentralAndExternalDB) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterConsumption(IReplicationInContext context, boolean successful, long lastProcessedKey) Flushes the bulk to disk after consuming the replication.voidbeforeConsume(IReplicationInContext context) protected voidchangeEntryInSpace(IReplicationInContext context, Transaction txn, String uid, int version, Collection<SpaceEntryMutator> mutators, boolean isTransient, OperationID operationID, IEntryData previousEntry, long timeToLive, boolean twoPhaseCommit, String typeName) protected voidremoveEntryFromSpace(IReplicationInContext context, Transaction txn, ITemplatePacket template, boolean twoPhaseCommit) protected voidupdateEntryInSpace(IReplicationInContext context, Transaction txn, IEntryPacket entry, IEntryPacket previousEntry, boolean partialUpdate, boolean overrideVersion, long lease, boolean twoPhaseCommit) protected voidwriteEntryIntoSpace(IReplicationInContext context, Transaction txn, IEntryPacket entry, long lease, boolean twoPhaseCommit) Methods inherited from class com.gigaspaces.internal.cluster.node.impl.handlers.PrimaryBackupSpaceReplicationEntryEventHandler
postChangeExecution, postRemoveExecution, postUpdateExecution, shouldChangeEntryInSpace, shouldEvictEntryFromSpace, shouldRemoveEntryFromSpace, shouldUpdateEntryInSpace, updateOrWriteMethods inherited from class com.gigaspaces.internal.cluster.node.impl.handlers.AbstractSpaceReplicationEntryEventHandler
changeEntry, executeUpdateOperation, getConflictingOperationPolicy, ignoreOperation, inEvictEntry, removeEntry, removeEntryByUid, updateEntry, writeEntryMethods inherited from class com.gigaspaces.internal.cluster.node.handlers.AbstractReplicationEntryEventHandler
inChangeEntry, inRemoveEntry, inRemoveEntryByUID, inUpdateEntry, inWriteEntry
-
Constructor Details
-
BlobstorePrimaryBackupSpaceReplicationEntryEventHandler
public BlobstorePrimaryBackupSpaceReplicationEntryEventHandler(SpaceEngine engine, boolean isCentralAndExternalDB)
-
-
Method Details
-
writeEntryIntoSpace
protected void writeEntryIntoSpace(IReplicationInContext context, Transaction txn, IEntryPacket entry, long lease, boolean twoPhaseCommit) throws Exception - Overrides:
writeEntryIntoSpacein classPrimaryBackupSpaceReplicationEntryEventHandler- Throws:
Exception
-
afterConsumption
public void afterConsumption(IReplicationInContext context, boolean successful, long lastProcessedKey) Flushes the bulk to disk after consuming the replication.- Specified by:
afterConsumptionin interfaceIReplicationInEntryHandler- Overrides:
afterConsumptionin classAbstractReplicationEntryEventHandler
-
beforeConsume
- Specified by:
beforeConsumein interfaceIReplicationInEntryHandler- Overrides:
beforeConsumein classAbstractReplicationEntryEventHandler
-
updateEntryInSpace
protected void updateEntryInSpace(IReplicationInContext context, Transaction txn, IEntryPacket entry, IEntryPacket previousEntry, boolean partialUpdate, boolean overrideVersion, long lease, boolean twoPhaseCommit) throws UnusableEntryException, UnknownTypeException, TransactionException, RemoteException -
changeEntryInSpace
protected void changeEntryInSpace(IReplicationInContext context, Transaction txn, String uid, int version, Collection<SpaceEntryMutator> mutators, boolean isTransient, OperationID operationID, IEntryData previousEntry, long timeToLive, boolean twoPhaseCommit, String typeName) throws Exception - Overrides:
changeEntryInSpacein classPrimaryBackupSpaceReplicationEntryEventHandler- Throws:
Exception
-
removeEntryFromSpace
protected void removeEntryFromSpace(IReplicationInContext context, Transaction txn, ITemplatePacket template, boolean twoPhaseCommit) throws TransactionException, UnusableEntryException, UnknownTypeException, RemoteException
-