
public class OTransactionPhase1Task extends OAbstractReplicatedTask
ORemoteTask.RESULT_STRATEGY| Modifier and Type | Field and Description |
|---|---|
static int |
FACTORYID |
ALL, ANY, FAST_NOLOCK, LOCK, nodeSource| Constructor and Description |
|---|
OTransactionPhase1Task() |
OTransactionPhase1Task(List<ORecordOperation> ops) |
getFixTask, getUndoTaskcheckIsValid, getNodeSource, getResultStrategy, getSynchronousTimeout, getTotalTimeout, isNodeOnlineRequired, isUsingDatabase, setNodeSource, toStringpublic static final int FACTORYID
public OTransactionPhase1Task()
public OTransactionPhase1Task(List<ORecordOperation> ops)
public void genOps(List<ORecordOperation> ops)
public String getName()
getName in interface ORemoteTaskgetName in class OAbstractRemoteTaskpublic OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType in interface ORemoteTaskgetQuorumType in class OAbstractRemoteTaskpublic Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception
execute in interface ORemoteTaskexecute in class OAbstractRemoteTaskExceptionpublic boolean hasResponse()
hasResponse in interface ORemoteTaskhasResponse in class OAbstractRemoteTaskpublic static OTransactionResultPayload executeTransaction(ODistributedRequestId requestId, ODatabaseDocumentDistributed database, OTransactionInternal tx, boolean local, int retryCount)
public void fromStream(DataInput in, ORemoteTaskFactory factory) throws IOException
fromStream in interface ORemoteTaskfromStream in class OAbstractRemoteTaskIOExceptionpublic void toStream(DataOutput out) throws IOException
toStream in interface ORemoteTasktoStream in class OAbstractRemoteTaskIOExceptionpublic int getFactoryId()
public void init(OTransactionInternal operations)
public void setLastLSN(OLogSequenceNumber lastLSN)
public OLogSequenceNumber getLastLSN()
getLastLSN in class OAbstractReplicatedTaskpublic boolean isIdempotent()
isIdempotent in interface ORemoteTaskisIdempotent in class OAbstractRemoteTaskpublic int[] getPartitionKey()
getPartitionKey in interface ORemoteTaskgetPartitionKey in class OAbstractRemoteTaskpublic long getDistributedTimeout()
getDistributedTimeout in interface ORemoteTaskgetDistributedTimeout in class OAbstractRemoteTaskpublic int getRetryCount()
public List<ORecordOperationRequest> getOperations()
public List<ORecordOperation> getOps()
public void received(ODistributedRequest request, ODistributedDatabase distributedDatabase)
public void finished()
Copyright © 2009–2025 OrientDB. All rights reserved.