
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 com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE |
quorumType |
protected ORemoteTask.RESULT_STRATEGY |
resultStrategy |
protected String |
text |
protected long |
timeout |
lastLSNALL, ANY, nodeSource| Constructor and Description |
|---|
OSQLCommandTask() |
OSQLCommandTask(com.orientechnologies.orient.core.command.OCommandRequestText iCommand,
Collection<String> iClusterNames) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(ODistributedRequestId requestId,
OServer iServer,
ODistributedServerManager iManager,
com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database) |
void |
fromStream(DataInput in,
ORemoteTaskFactory factory) |
long |
getDistributedTimeout() |
int |
getFactoryId() |
String |
getName() |
com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE |
getQuorumType() |
ORemoteTask.RESULT_STRATEGY |
getResultStrategy() |
ORemoteTask |
getUndoTask(ODistributedRequestId reqId) |
boolean |
isIdempotent() |
void |
setResultStrategy(ORemoteTask.RESULT_STRATEGY resultStrategy) |
void |
toStream(DataOutput out) |
String |
toString() |
getFixTask, getLastLSNgetNodeSource, getPartitionKey, getSynchronousTimeout, getTotalTimeout, isNodeOnlineRequired, isUsingDatabase, setNodeSourcepublic static final int FACTORYID
protected String text
protected ORemoteTask.RESULT_STRATEGY resultStrategy
protected Collection<String> clusters
protected com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE quorumType
protected long timeout
protected boolean idempotent
public OSQLCommandTask()
public OSQLCommandTask(com.orientechnologies.orient.core.command.OCommandRequestText iCommand,
Collection<String> iClusterNames)
public Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database) throws Exception
execute in interface ORemoteTaskexecute in class OAbstractRemoteTaskExceptionpublic com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType in interface ORemoteTaskgetQuorumType in class OAbstractRemoteTaskpublic ORemoteTask.RESULT_STRATEGY getResultStrategy()
getResultStrategy in interface ORemoteTaskgetResultStrategy in class OAbstractCommandTaskpublic void setResultStrategy(ORemoteTask.RESULT_STRATEGY resultStrategy)
setResultStrategy in class OAbstractCommandTaskpublic long getDistributedTimeout()
getDistributedTimeout in interface ORemoteTaskgetDistributedTimeout in class OAbstractRemoteTaskpublic void toStream(DataOutput out) throws IOException
toStream in interface ORemoteTasktoStream in class OAbstractRemoteTaskIOExceptionpublic void fromStream(DataInput in, ORemoteTaskFactory factory) throws IOException
fromStream in interface ORemoteTaskfromStream in class OAbstractRemoteTaskIOExceptionpublic String getName()
getName in interface ORemoteTaskgetName in class OAbstractRemoteTaskpublic String toString()
toString in class OAbstractRemoteTaskpublic ORemoteTask getUndoTask(ODistributedRequestId reqId)
getUndoTask in class OAbstractReplicatedTaskpublic boolean isIdempotent()
isIdempotent in interface ORemoteTaskisIdempotent in class OAbstractRemoteTaskpublic int getFactoryId()
Copyright © 2009–2017 OrientDB. All rights reserved.