public class OSQLCommandTask extends OAbstractCommandTask
ORemoteTask.RESULT_STRATEGY
Modifier and Type | Field and Description |
---|---|
protected Collection<String> |
clusters |
static int |
FACTORYID |
protected boolean |
idempotent |
protected Map<Object,Object> |
params |
protected OCommandDistributedReplicateRequest.QUORUM_TYPE |
quorumType |
protected ORemoteTask.RESULT_STRATEGY |
resultStrategy |
protected String |
text |
protected long |
timeout |
lastLSN
ALL, ANY, FAST_NOLOCK, LOCK, nodeSource
Constructor and Description |
---|
OSQLCommandTask() |
OSQLCommandTask(OCommandRequestText iCommand,
Collection<String> iClusterNames) |
Modifier and Type | Method and Description |
---|---|
Object |
execute(ODistributedRequestId requestId,
OServer iServer,
ODistributedServerManager iManager,
ODatabaseDocumentInternal database) |
void |
fromStream(DataInput in,
ORemoteTaskFactory factory) |
long |
getDistributedTimeout() |
int |
getFactoryId() |
String |
getName() |
OCommandDistributedReplicateRequest.QUORUM_TYPE |
getQuorumType() |
ORemoteTask.RESULT_STRATEGY |
getResultStrategy() |
ORemoteTask |
getUndoTask(ODistributedServerManager dManager,
ODistributedRequestId reqId,
List<String> servers) |
boolean |
isIdempotent() |
void |
setResultStrategy(ORemoteTask.RESULT_STRATEGY resultStrategy) |
void |
toStream(DataOutput out) |
String |
toString() |
getFixTask, getLastLSN
checkIsValid, getNodeSource, getPartitionKey, getSynchronousTimeout, getTotalTimeout, hasResponse, isNodeOnlineRequired, isUsingDatabase, setNodeSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
finished, received
public static final int FACTORYID
protected String text
protected ORemoteTask.RESULT_STRATEGY resultStrategy
protected Collection<String> clusters
protected OCommandDistributedReplicateRequest.QUORUM_TYPE quorumType
protected long timeout
protected boolean idempotent
public OSQLCommandTask()
public OSQLCommandTask(OCommandRequestText iCommand, Collection<String> iClusterNames)
public Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception
execute
in interface ORemoteTask
execute
in class OAbstractRemoteTask
Exception
public OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType
in interface ORemoteTask
getQuorumType
in class OAbstractRemoteTask
public ORemoteTask.RESULT_STRATEGY getResultStrategy()
getResultStrategy
in interface ORemoteTask
getResultStrategy
in class OAbstractCommandTask
public void setResultStrategy(ORemoteTask.RESULT_STRATEGY resultStrategy)
setResultStrategy
in class OAbstractCommandTask
public long getDistributedTimeout()
getDistributedTimeout
in interface ORemoteTask
getDistributedTimeout
in class OAbstractRemoteTask
public void toStream(DataOutput out) throws IOException
toStream
in interface ORemoteTask
toStream
in class OAbstractRemoteTask
IOException
public void fromStream(DataInput in, ORemoteTaskFactory factory) throws IOException
fromStream
in interface ORemoteTask
fromStream
in class OAbstractRemoteTask
IOException
public String getName()
getName
in interface ORemoteTask
getName
in class OAbstractRemoteTask
public String toString()
toString
in class OAbstractRemoteTask
public ORemoteTask getUndoTask(ODistributedServerManager dManager, ODistributedRequestId reqId, List<String> servers)
getUndoTask
in class OAbstractReplicatedTask
public boolean isIdempotent()
isIdempotent
in interface ORemoteTask
isIdempotent
in class OAbstractRemoteTask
public int getFactoryId()
Copyright © 2009–2020 OrientDB. All rights reserved.