
public class OCompleted2pcTask extends OAbstractReplicatedTask
ORemoteTask.RESULT_STRATEGY| Modifier and Type | Field and Description |
|---|---|
static int |
FACTORYID |
lastLSNALL, ANY, nodeSource| Constructor and Description |
|---|
OCompleted2pcTask() |
OCompleted2pcTask(ODistributedRequestId iRequestId,
boolean iSuccess,
int[] partitionKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFixTask(ORemoteTask fixTask) |
Object |
execute(ODistributedRequestId msgId,
OServer iServer,
ODistributedServerManager iManager,
com.orientechnologies.orient.core.db.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()
This task uses the same partition keys used by TxTask to avoid synchronizing all the worker threads (and queues).
|
com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE |
getQuorumType() |
void |
toStream(DataOutput out) |
String |
toString() |
getFixTask, getLastLSN, getUndoTaskgetNodeSource, getResultStrategy, getSynchronousTimeout, getTotalTimeout, isIdempotent, isNodeOnlineRequired, isUsingDatabase, setNodeSourcepublic static final int FACTORYID
public OCompleted2pcTask()
public OCompleted2pcTask(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, 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 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()
Copyright © 2009–2017 OrientDB. All rights reserved.