com.hazelcast.executor.impl.operations
Class CallableTaskOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.executor.impl.operations.CallableTaskOperation
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, RemotePropagatable<Operation>, TraceableOperation

public final class CallableTaskOperation
extends Operation
implements IdentifiedDataSerializable


Field Summary
protected  Callable callable
           
protected  String name
           
protected  String uuid
           
 
Constructor Summary
CallableTaskOperation()
           
CallableTaskOperation(String name, String uuid, Data callableData)
           
 
Method Summary
 void afterRun()
           
 void beforeRun()
           
 int getFactoryId()
          Returns DataSerializableFactory factory id for this class.
 int getId()
          Returns type identifier for this class.
 Object getResponse()
           
 Object getTraceIdentifier()
           
protected  void readInternal(ObjectDataInput in)
           
 boolean returnsResponse()
           
 void run()
           
protected  void writeInternal(ObjectDataOutput out)
           
 
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, onException, readData, setCallerUuid, setExecutorName, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable
readData, writeData
 

Field Detail

name

protected String name

uuid

protected String uuid

callable

protected transient Callable callable
Constructor Detail

CallableTaskOperation

public CallableTaskOperation()

CallableTaskOperation

public CallableTaskOperation(String name,
                             String uuid,
                             Data callableData)
Method Detail

getFactoryId

public int getFactoryId()
Description copied from interface: IdentifiedDataSerializable
Returns DataSerializableFactory factory id for this class.

Specified by:
getFactoryId in interface IdentifiedDataSerializable
Returns:
factory id

getId

public int getId()
Description copied from interface: IdentifiedDataSerializable
Returns type identifier for this class. Id should be unique per DataSerializableFactory.

Specified by:
getId in interface IdentifiedDataSerializable
Returns:
type id

beforeRun

public final void beforeRun()
                     throws Exception
Specified by:
beforeRun in class Operation
Throws:
Exception

run

public final void run()
               throws Exception
Specified by:
run in class Operation
Throws:
Exception

afterRun

public final void afterRun()
                    throws Exception
Specified by:
afterRun in class Operation
Throws:
Exception

returnsResponse

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

getResponse

public final Object getResponse()
Specified by:
getResponse in class Operation

getTraceIdentifier

public Object getTraceIdentifier()
Specified by:
getTraceIdentifier in interface TraceableOperation

writeInternal

protected void writeInternal(ObjectDataOutput out)
                      throws IOException
Specified by:
writeInternal in class Operation
Throws:
IOException

readInternal

protected void readInternal(ObjectDataInput in)
                     throws IOException
Specified by:
readInternal in class Operation
Throws:
IOException


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