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, wait
finished, getFactoryId, received
public 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 ORemoteTask
public abstract OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType
in interface ORemoteTask
public abstract 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 void checkIsValid(ODistributedServerManager dManager)
ORemoteTask
checkIsValid
in interface ORemoteTask
public long getTotalTimeout(int iTotalNodes)
getTotalTimeout
in interface ORemoteTask
public boolean hasResponse()
hasResponse
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 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
Copyright © 2009–2020 OrientDB. All rights reserved.