public class PromotionCommitOperation extends Operation implements MigrationCycleOperation
beforeStateCompleted property. First it invokes
 BeforePromotionOperations for every promoted partition. After all operations return it will reschedule itself
 and finalize the promotions by sending FinalizePromotionOperation for every promotion.GENERIC_PARTITION_ID| Constructor and Description | 
|---|
| PromotionCommitOperation() | 
| PromotionCommitOperation(PartitionRuntimeState partitionState,
                        Collection<MigrationInfo> promotions,
                        String expectedMemberUuid) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterRun() | 
| void | beforeRun() | 
| int | getFactoryId()Returns DataSerializableFactory factory ID for this class. | 
| int | getId()Returns type identifier for this class. | 
| Object | getResponse() | 
| String | getServiceName() | 
| void | onExecutionFailure(Throwable e)Called when an Exception/Error is thrown during operation execution. | 
| ExceptionAction | onInvocationException(Throwable throwable)Called when an Exception/Error is thrown
 during an invocation. | 
| protected void | readInternal(ObjectDataInput in) | 
| boolean | returnsResponse() | 
| void | run() | 
| protected void | writeInternal(ObjectDataOutput out) | 
executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, logError, onSetCallId, readData, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadData, writeDatapublic PromotionCommitOperation()
public PromotionCommitOperation(PartitionRuntimeState partitionState, Collection<MigrationInfo> promotions, String expectedMemberUuid)
public void beforeRun()
               throws Exception
public void afterRun()
              throws Exception
public int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic boolean returnsResponse()
returnsResponse in class Operationpublic Object getResponse()
getResponse in class Operationpublic String getServiceName()
getServiceName in class Operationpublic ExceptionAction onInvocationException(Throwable throwable)
OperationonInvocationException in class Operationthrowable - Exception/Error thrown during invocationpublic void onExecutionFailure(Throwable e)
OperationonExecutionFailure in class Operatione - Exception/Error thrown during operation executionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class OperationIOExceptionprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class OperationIOExceptionpublic final int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializableCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.