Class NodeOperationTask
java.lang.Object
com.orientechnologies.orient.server.distributed.operation.NodeOperationTask
- All Implemented Interfaces:
ORemoteTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.server.distributed.task.ORemoteTask
ORemoteTask.RESULT_STRATEGY -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeOperationResponsecreateOperationResponse(int messageId) execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) voidfromStream(DataInput in, ORemoteTaskFactory factory) longintgetName()longgetSynchronousTimeout(int iSynchNodes) longgetTotalTimeout(int iTotalNodes) booleanbooleanbooleanbooleanstatic voidregister(int messageId, Callable<NodeOperation> requestFactory, Callable<NodeOperationResponse> responseFactory) voidsetNodeSource(String nodeSource) voidtoStream(DataOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.distributed.task.ORemoteTask
finished, received
-
Field Details
-
FACTORYID
public static final int FACTORYID- See Also:
-
-
Constructor Details
-
NodeOperationTask
-
NodeOperationTask
public NodeOperationTask()
-
-
Method Details
-
hasResponse
public boolean hasResponse()- Specified by:
hasResponsein interfaceORemoteTask
-
getName
- Specified by:
getNamein interfaceORemoteTask
-
getQuorumType
- Specified by:
getQuorumTypein interfaceORemoteTask
-
execute
public Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception - Specified by:
executein interfaceORemoteTask- Throws:
Exception
-
getDistributedTimeout
public long getDistributedTimeout()- Specified by:
getDistributedTimeoutin interfaceORemoteTask
-
getSynchronousTimeout
public long getSynchronousTimeout(int iSynchNodes) - Specified by:
getSynchronousTimeoutin interfaceORemoteTask
-
getTotalTimeout
public long getTotalTimeout(int iTotalNodes) - Specified by:
getTotalTimeoutin interfaceORemoteTask
-
getResultStrategy
- Specified by:
getResultStrategyin interfaceORemoteTask
-
getNodeSource
- Specified by:
getNodeSourcein interfaceORemoteTask
-
setNodeSource
- Specified by:
setNodeSourcein interfaceORemoteTask
-
isIdempotent
public boolean isIdempotent()- Specified by:
isIdempotentin interfaceORemoteTask
-
isNodeOnlineRequired
public boolean isNodeOnlineRequired()- Specified by:
isNodeOnlineRequiredin interfaceORemoteTask
-
isUsingDatabase
public boolean isUsingDatabase()- Specified by:
isUsingDatabasein interfaceORemoteTask
-
getFactoryId
public int getFactoryId()- Specified by:
getFactoryIdin interfaceORemoteTask
-
toStream
- Specified by:
toStreamin interfaceORemoteTask- Throws:
IOException
-
fromStream
- Specified by:
fromStreamin interfaceORemoteTask- Throws:
IOException
-
register
public static void register(int messageId, Callable<NodeOperation> requestFactory, Callable<NodeOperationResponse> responseFactory) -
createOperationResponse
-