Class OAbstractRemoteTask
java.lang.Object
com.orientechnologies.orient.server.distributed.task.OAbstractRemoteTask
- All Implemented Interfaces:
ORemoteTask
- Direct Known Subclasses:
OCloseQueryTask,OCopyDatabaseChunkTask,ODropDatabaseTask,OEnterpriseStatsTask,OFetchQueryPageTask,OGossipTask,ORequestDatabaseConfigurationTask,ORestartServerTask,ORunQueryExecutionPlanTask,OSQLCommandTaskFirstPhase,OSQLCommandTaskSecondPhase,OStopServerTask,OSyncClusterTask,OSyncDatabaseNewDeltaTask,OSyncDatabaseTask,OTransactionPhase1Task,OTransactionPhase2Task,OUnreachableServerLocalTask,OUpdateDatabaseConfigurationTask,OUpdateDatabaseSequenceStatusTask
Base class for Tasks to be executed remotely.
- Author:
- Luca Garulli (l.garulli--at--orientdb.com)
-
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 TypeMethodDescriptionvoidfromStream(DataInput in, ORemoteTaskFactory factory) longlonggetSynchronousTimeout(int iSynchNodes) longgetTotalTimeout(int iTotalNodes) booleanbooleanbooleanbooleanvoidsetNodeSource(String nodeSource) voidtoStream(DataOutput out) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.distributed.task.ORemoteTask
execute, finished, getFactoryId, getName, getQuorumType, received
-
Field Details
-
nodeSource
-
-
Constructor Details
-
OAbstractRemoteTask
public OAbstractRemoteTask()Constructor used from unmarshalling.
-
-
Method Details
-
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
-
hasResponse
public boolean hasResponse()- Specified by:
hasResponsein interfaceORemoteTask
-
getResultStrategy
- Specified by:
getResultStrategyin interfaceORemoteTask
-
toString
-
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
-
toStream
- Specified by:
toStreamin interfaceORemoteTask- Throws:
IOException
-
fromStream
- Specified by:
fromStreamin interfaceORemoteTask- Throws:
IOException
-