com.hazelcast.partition.impl
Class BaseMigrationOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.spi.AbstractOperation
          extended by com.hazelcast.partition.impl.BaseMigrationOperation
All Implemented Interfaces:
DataSerializable, MigrationCycleOperation, RemotePropagatable<Operation>, PartitionAwareOperation, UrgentSystemOperation
Direct Known Subclasses:
MigrationOperation, MigrationRequestOperation

public abstract class BaseMigrationOperation
extends AbstractOperation
implements MigrationCycleOperation, PartitionAwareOperation


Field Summary
protected  MigrationInfo migrationInfo
           
protected  boolean success
           
 
Constructor Summary
BaseMigrationOperation()
           
BaseMigrationOperation(MigrationInfo migrationInfo)
           
 
Method Summary
 Object getResponse()
           
 ExceptionAction onException(Throwable throwable)
           
protected  void readInternal(ObjectDataInput in)
           
 boolean returnsResponse()
           
 String toString()
           
 boolean validatesTarget()
           
protected  void writeInternal(ObjectDataOutput out)
           
 
Methods inherited from class com.hazelcast.spi.AbstractOperation
afterRun, beforeRun
 
Methods inherited from class com.hazelcast.spi.Operation
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getExecutorName, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getServiceName, getWaitTimeout, isUrgent, logError, readData, run, setCallerUuid, setExecutorName, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.spi.PartitionAwareOperation
getPartitionId
 

Field Detail

migrationInfo

protected MigrationInfo migrationInfo

success

protected boolean success
Constructor Detail

BaseMigrationOperation

public BaseMigrationOperation()

BaseMigrationOperation

public BaseMigrationOperation(MigrationInfo migrationInfo)
Method Detail

getResponse

public Object getResponse()
Overrides:
getResponse in class AbstractOperation

returnsResponse

public boolean returnsResponse()
Specified by:
returnsResponse in interface RemotePropagatable<Operation>
Overrides:
returnsResponse in class AbstractOperation

validatesTarget

public final boolean validatesTarget()
Overrides:
validatesTarget in class Operation

onException

public ExceptionAction onException(Throwable throwable)
Overrides:
onException in class Operation

writeInternal

protected void writeInternal(ObjectDataOutput out)
                      throws IOException
Overrides:
writeInternal in class AbstractOperation
Throws:
IOException

readInternal

protected void readInternal(ObjectDataInput in)
                     throws IOException
Overrides:
readInternal in class AbstractOperation
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Operation


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.