
public abstract class OAbstractRemoteTask extends Object implements ORemoteTask
ORemoteTask.RESULT_STRATEGY| Modifier and Type | Field and Description |
|---|---|
static int[] |
ALL |
protected static int[] |
ANY |
protected static int[] |
FAST_NOLOCK |
protected static int[] |
LOCK |
protected String |
nodeSource |
| Constructor and Description |
|---|
OAbstractRemoteTask()
Constructor used from unmarshalling.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkIsValid(ODistributedServerManager dManager)
Checks the request is still valid.
|
abstract Object |
execute(ODistributedRequestId requestId,
OServer iServer,
ODistributedServerManager iManager,
ODatabaseDocumentInternal database) |
void |
fromStream(DataInput in,
ORemoteTaskFactory factory) |
long |
getDistributedTimeout() |
abstract String |
getName() |
String |
getNodeSource() |
int[] |
getPartitionKey() |
abstract OCommandDistributedReplicateRequest.QUORUM_TYPE |
getQuorumType() |
ORemoteTask.RESULT_STRATEGY |
getResultStrategy() |
long |
getSynchronousTimeout(int iSynchNodes) |
long |
getTotalTimeout(int iTotalNodes) |
boolean |
hasResponse() |
boolean |
isIdempotent() |
boolean |
isNodeOnlineRequired() |
boolean |
isUsingDatabase() |
void |
setNodeSource(String nodeSource) |
void |
toStream(DataOutput out) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfinished, getFactoryId, receivedpublic static final int[] ALL
protected static final int[] ANY
protected static final int[] LOCK
protected static final int[] FAST_NOLOCK
protected transient String nodeSource
public OAbstractRemoteTask()
public abstract String getName()
getName in interface ORemoteTaskpublic abstract OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType in interface ORemoteTaskpublic abstract Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception
execute in interface ORemoteTaskExceptionpublic int[] getPartitionKey()
getPartitionKey in interface ORemoteTaskpublic long getDistributedTimeout()
getDistributedTimeout in interface ORemoteTaskpublic long getSynchronousTimeout(int iSynchNodes)
getSynchronousTimeout in interface ORemoteTaskpublic void checkIsValid(ODistributedServerManager dManager)
ORemoteTaskcheckIsValid in interface ORemoteTaskpublic long getTotalTimeout(int iTotalNodes)
getTotalTimeout in interface ORemoteTaskpublic boolean hasResponse()
hasResponse in interface ORemoteTaskpublic ORemoteTask.RESULT_STRATEGY getResultStrategy()
getResultStrategy in interface ORemoteTaskpublic String getNodeSource()
getNodeSource in interface ORemoteTaskpublic void setNodeSource(String nodeSource)
setNodeSource in interface ORemoteTaskpublic boolean isIdempotent()
isIdempotent in interface ORemoteTaskpublic boolean isNodeOnlineRequired()
isNodeOnlineRequired in interface ORemoteTaskpublic boolean isUsingDatabase()
isUsingDatabase in interface ORemoteTaskpublic void toStream(DataOutput out) throws IOException
toStream in interface ORemoteTaskIOExceptionpublic void fromStream(DataInput in, ORemoteTaskFactory factory) throws IOException
fromStream in interface ORemoteTaskIOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.