
public class NodeOperationTask extends java.lang.Object implements ORemoteTask
ORemoteTask.RESULT_STRATEGY| Modifier and Type | Field and Description |
|---|---|
static int |
FACTORYID |
| Constructor and Description |
|---|
NodeOperationTask() |
NodeOperationTask(NodeOperation task) |
| Modifier and Type | Method and Description |
|---|---|
static NodeOperationResponse |
createOperationResponse(int messageId) |
java.lang.Object |
execute(ODistributedRequestId requestId,
OServer iServer,
ODistributedServerManager iManager,
ODatabaseDocumentInternal database) |
void |
fromStream(java.io.DataInput in,
ORemoteTaskFactory factory) |
long |
getDistributedTimeout() |
int |
getFactoryId() |
java.lang.String |
getName() |
java.lang.String |
getNodeSource() |
com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE |
getQuorumType() |
ORemoteTask.RESULT_STRATEGY |
getResultStrategy() |
long |
getSynchronousTimeout(int iSynchNodes) |
long |
getTotalTimeout(int iTotalNodes) |
boolean |
hasResponse() |
boolean |
isIdempotent() |
boolean |
isNodeOnlineRequired() |
boolean |
isUsingDatabase() |
static void |
register(int messageId,
java.util.concurrent.Callable<NodeOperation> requestFactory,
java.util.concurrent.Callable<NodeOperationResponse> responseFactory) |
void |
setNodeSource(java.lang.String nodeSource) |
void |
toStream(java.io.DataOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinished, receivedpublic static final int FACTORYID
public NodeOperationTask(NodeOperation task)
public NodeOperationTask()
public boolean hasResponse()
hasResponse in interface ORemoteTaskpublic java.lang.String getName()
getName in interface ORemoteTaskpublic com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType in interface ORemoteTaskpublic java.lang.Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws java.lang.Exception
execute in interface ORemoteTaskjava.lang.Exceptionpublic long getDistributedTimeout()
getDistributedTimeout in interface ORemoteTaskpublic long getSynchronousTimeout(int iSynchNodes)
getSynchronousTimeout in interface ORemoteTaskpublic long getTotalTimeout(int iTotalNodes)
getTotalTimeout in interface ORemoteTaskpublic ORemoteTask.RESULT_STRATEGY getResultStrategy()
getResultStrategy in interface ORemoteTaskpublic java.lang.String getNodeSource()
getNodeSource in interface ORemoteTaskpublic void setNodeSource(java.lang.String nodeSource)
setNodeSource in interface ORemoteTaskpublic boolean isIdempotent()
isIdempotent in interface ORemoteTaskpublic boolean isNodeOnlineRequired()
isNodeOnlineRequired in interface ORemoteTaskpublic boolean isUsingDatabase()
isUsingDatabase in interface ORemoteTaskpublic int getFactoryId()
getFactoryId in interface ORemoteTaskpublic void toStream(java.io.DataOutput out)
throws java.io.IOException
toStream in interface ORemoteTaskjava.io.IOExceptionpublic void fromStream(java.io.DataInput in,
ORemoteTaskFactory factory)
throws java.io.IOException
fromStream in interface ORemoteTaskjava.io.IOExceptionpublic static void register(int messageId,
java.util.concurrent.Callable<NodeOperation> requestFactory,
java.util.concurrent.Callable<NodeOperationResponse> responseFactory)
public static NodeOperationResponse createOperationResponse(int messageId)
Copyright © 2009–2022 OrientDB. All rights reserved.