public class NodeOperationTask extends Object implements ORemoteTask
ORemoteTask.RESULT_STRATEGY
Modifier and Type | Field and Description |
---|---|
static int |
FACTORYID |
Constructor and Description |
---|
NodeOperationTask() |
NodeOperationTask(NodeOperation task) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finished, received
public static final int FACTORYID
public NodeOperationTask(NodeOperation task)
public NodeOperationTask()
public boolean hasResponse()
hasResponse
in interface ORemoteTask
public String getName()
getName
in interface ORemoteTask
public OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType
in interface ORemoteTask
public Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception
execute
in interface ORemoteTask
Exception
public int[] getPartitionKey()
getPartitionKey
in interface ORemoteTask
public long getDistributedTimeout()
getDistributedTimeout
in interface ORemoteTask
public long getSynchronousTimeout(int iSynchNodes)
getSynchronousTimeout
in interface ORemoteTask
public long getTotalTimeout(int iTotalNodes)
getTotalTimeout
in interface ORemoteTask
public ORemoteTask.RESULT_STRATEGY getResultStrategy()
getResultStrategy
in interface ORemoteTask
public String getNodeSource()
getNodeSource
in interface ORemoteTask
public void setNodeSource(String nodeSource)
setNodeSource
in interface ORemoteTask
public boolean isIdempotent()
isIdempotent
in interface ORemoteTask
public boolean isNodeOnlineRequired()
isNodeOnlineRequired
in interface ORemoteTask
public boolean isUsingDatabase()
isUsingDatabase
in interface ORemoteTask
public int getFactoryId()
getFactoryId
in interface ORemoteTask
public void checkIsValid(ODistributedServerManager dManager)
ORemoteTask
checkIsValid
in interface ORemoteTask
public void toStream(DataOutput out) throws IOException
toStream
in interface ORemoteTask
IOException
public void fromStream(DataInput in, ORemoteTaskFactory factory) throws IOException
fromStream
in interface ORemoteTask
IOException
public static void register(int messageId, Callable<NodeOperation> requestFactory, Callable<NodeOperationResponse> responseFactory)
public static NodeOperationResponse createOperationResponse(int messageId)
Copyright © 2009–2020 OrientDB. All rights reserved.