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,
OTransactionId transactionId) |
getFixTask, getUndoTask
checkIsValid, getNodeSource, getResultStrategy, getSynchronousTimeout, getTotalTimeout, isNodeOnlineRequired, isUsingDatabase, setNodeSource, toString
public static final int FACTORYID
public OTransactionPhase1Task()
public OTransactionPhase1Task(List<ORecordOperation> ops, OTransactionId transactionId)
public void genOps(List<ORecordOperation> ops)
public String getName()
getName
in interface ORemoteTask
getName
in class OAbstractRemoteTask
public OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType
in interface ORemoteTask
getQuorumType
in class OAbstractRemoteTask
public Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception
execute
in interface ORemoteTask
execute
in class OAbstractRemoteTask
Exception
public boolean hasResponse()
hasResponse
in interface ORemoteTask
hasResponse
in class OAbstractRemoteTask
public static OTransactionResultPayload executeTransaction(ODistributedRequestId requestId, OTransactionId id, ODatabaseDocumentDistributed database, OTransactionInternal tx, boolean local, int retryCount)
public void fromStream(DataInput in, ORemoteTaskFactory factory) throws IOException
fromStream
in interface ORemoteTask
fromStream
in class OAbstractRemoteTask
IOException
public void toStream(DataOutput out) throws IOException
toStream
in interface ORemoteTask
toStream
in class OAbstractRemoteTask
IOException
public int getFactoryId()
public void init(OTransactionId transactionId, OTransactionInternal operations)
public void setLastLSN(OLogSequenceNumber lastLSN)
public OLogSequenceNumber getLastLSN()
getLastLSN
in class OAbstractReplicatedTask
public boolean isIdempotent()
isIdempotent
in interface ORemoteTask
isIdempotent
in class OAbstractRemoteTask
public int[] getPartitionKey()
getPartitionKey
in interface ORemoteTask
getPartitionKey
in class OAbstractRemoteTask
public long getDistributedTimeout()
getDistributedTimeout
in interface ORemoteTask
getDistributedTimeout
in class OAbstractRemoteTask
public int getRetryCount()
public List<ORecordOperationRequest> getOperations()
public List<ORecordOperation> getOps()
public void received(ODistributedRequest request, ODistributedDatabase distributedDatabase)
public void finished()
public OTransactionId getTransactionId()
Copyright © 2009–2020 OrientDB. All rights reserved.