public class HotRestartBackupOperation
extends com.hazelcast.spi.Operation
implements com.hazelcast.spi.impl.AllowedDuringPassiveState, com.hazelcast.nio.serialization.IdentifiedDataSerializable
prepareOperation(Address, String, long) method is used for the
prepare phase, the commitOperation(long, Address, String) is used for the commit phase and the
rollbackOperation(Address, String) is used for for creating a new operation for the rollback phase.| Constructor and Description |
|---|
HotRestartBackupOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeRun() |
static HotRestartBackupOperation |
commitOperation(long backupSeq,
com.hazelcast.nio.Address initiator,
String txnId)
Create a operation for commiting a transaction of a cluster-wide hot restart backup.
|
int |
getFactoryId() |
int |
getId() |
String |
getServiceName() |
void |
logError(Throwable e) |
com.hazelcast.spi.ExceptionAction |
onInvocationException(Throwable throwable) |
static HotRestartBackupOperation |
prepareOperation(com.hazelcast.nio.Address initiator,
String txnId,
long leaseTime)
Create a operation for preparing a transaction of a cluster-wide hot restart backup.
|
protected void |
readInternal(com.hazelcast.nio.ObjectDataInput in) |
static HotRestartBackupOperation |
rollbackOperation(com.hazelcast.nio.Address initiator,
String txnId)
Create a operation for transaction rollback of a cluster-wide hot restart backup.
|
void |
run() |
protected void |
writeInternal(com.hazelcast.nio.ObjectDataOutput out) |
afterRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponse, getService, getWaitTimeout, isUrgent, onExecutionFailure, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, toString, validatesTarget, writeDatapublic static HotRestartBackupOperation prepareOperation(com.hazelcast.nio.Address initiator, String txnId, long leaseTime)
initiator - the member which initiated the backuptxnId - the transaction IDleaseTime - duration in ms after which this transaction will expirepublic static HotRestartBackupOperation commitOperation(long backupSeq, com.hazelcast.nio.Address initiator, String txnId)
backupSeq - the suffix for the hot restart backup directoryinitiator - the member which initiated the backuptxnId - the transaction IDpublic static HotRestartBackupOperation rollbackOperation(com.hazelcast.nio.Address initiator, String txnId)
initiator - the member which initiated the backuptxnId - the transaction IDpublic void beforeRun()
throws Exception
beforeRun in class com.hazelcast.spi.OperationExceptionpublic void run()
throws Exception
run in class com.hazelcast.spi.OperationExceptionpublic void logError(Throwable e)
logError in class com.hazelcast.spi.Operationpublic com.hazelcast.spi.ExceptionAction onInvocationException(Throwable throwable)
onInvocationException in class com.hazelcast.spi.Operationpublic String getServiceName()
getServiceName in class com.hazelcast.spi.Operationprotected void writeInternal(com.hazelcast.nio.ObjectDataOutput out)
throws IOException
writeInternal in class com.hazelcast.spi.OperationIOExceptionprotected void readInternal(com.hazelcast.nio.ObjectDataInput in)
throws IOException
readInternal in class com.hazelcast.spi.OperationIOExceptionpublic int getFactoryId()
getFactoryId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializablepublic int getId()
getId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializableCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.