
public class OCompleted2pcTask extends OAbstractReplicatedTask
ORemoteTask.RESULT_STRATEGY| Modifier and Type | Field and Description |
|---|---|
static int |
FACTORYID |
protected List<ORemoteTask> |
fixTasks |
protected ODistributedRequestId |
requestId |
protected boolean |
success |
lastLSNALL, ANY, FAST_NOLOCK, LOCK, nodeSource| Constructor and Description |
|---|
OCompleted2pcTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFixTask(ORemoteTask fixTask) |
Object |
execute(ODistributedRequestId msgId,
OServer iServer,
ODistributedServerManager iManager,
ODatabaseDocumentInternal database) |
void |
fromStream(DataInput in,
ORemoteTaskFactory taskFactory) |
long |
getDistributedTimeout()
Computes the timeout according to the transaction size.
|
int |
getFactoryId() |
List<ORemoteTask> |
getFixTasks() |
String |
getName() |
int[] |
getPartitionKey()
In case of commit and rollback uses the FAST_NOLOCK, because there are no locking operation.
|
OCommandDistributedReplicateRequest.QUORUM_TYPE |
getQuorumType() |
ODistributedRequestId |
getRequestId() |
boolean |
getSuccess() |
OCompleted2pcTask |
init(ODistributedRequestId iRequestId,
boolean iSuccess,
int[] partitionKey) |
boolean |
isIdempotent() |
void |
toStream(DataOutput out) |
String |
toString() |
getFixTask, getLastLSN, getUndoTaskcheckIsValid, getNodeSource, getResultStrategy, getSynchronousTimeout, getTotalTimeout, hasResponse, isNodeOnlineRequired, isUsingDatabase, setNodeSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfinished, receivedpublic static final int FACTORYID
protected ODistributedRequestId requestId
protected boolean success
protected List<ORemoteTask> fixTasks
public OCompleted2pcTask init(ODistributedRequestId iRequestId, boolean iSuccess, int[] partitionKey)
public int[] getPartitionKey()
getPartitionKey in interface ORemoteTaskgetPartitionKey in class OAbstractRemoteTaskpublic void addFixTask(ORemoteTask fixTask)
public Object execute(ODistributedRequestId msgId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception
execute in interface ORemoteTaskexecute in class OAbstractRemoteTaskExceptionpublic OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType in interface ORemoteTaskgetQuorumType in class OAbstractRemoteTaskpublic void toStream(DataOutput out) throws IOException
toStream in interface ORemoteTasktoStream in class OAbstractRemoteTaskIOExceptionpublic void fromStream(DataInput in, ORemoteTaskFactory taskFactory) throws IOException
fromStream in interface ORemoteTaskfromStream in class OAbstractRemoteTaskIOExceptionpublic long getDistributedTimeout()
getDistributedTimeout in interface ORemoteTaskgetDistributedTimeout in class OAbstractRemoteTaskpublic String getName()
getName in interface ORemoteTaskgetName in class OAbstractRemoteTaskpublic int getFactoryId()
public String toString()
toString in class OAbstractRemoteTaskpublic List<ORemoteTask> getFixTasks()
public boolean getSuccess()
public ODistributedRequestId getRequestId()
public boolean isIdempotent()
isIdempotent in interface ORemoteTaskisIdempotent in class OAbstractRemoteTaskCopyright © 2009–2025 OrientDB. All rights reserved.