
public class OCreateRecordTask extends OAbstractRecordReplicatedTask
ORemoteTask.RESULT_STRATEGY| Modifier and Type | Field and Description |
|---|---|
protected int |
clusterId |
protected byte[] |
content |
static int |
FACTORYID |
protected byte |
recordType |
lockRecords, partitionKey, previousRecord, rid, versionlastLSNALL, ANY, nodeSource| Constructor and Description |
|---|
OCreateRecordTask() |
OCreateRecordTask(com.orientechnologies.orient.core.record.ORecord record) |
OCreateRecordTask(com.orientechnologies.orient.core.id.ORecordId iRid,
byte[] iContent,
int iVersion,
byte iRecordType) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkRecordExists() |
Object |
executeRecordTask(ODistributedRequestId requestId,
OServer iServer,
ODistributedServerManager iManager,
com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database) |
protected com.orientechnologies.orient.core.record.ORecord |
forceUpdate(ODistributedServerManager manager,
com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database,
ODistributedRequestId requestId,
com.orientechnologies.orient.core.storage.ORawBuffer loadedRecord) |
void |
fromStream(DataInput in,
ORemoteTaskFactory factory) |
int |
getFactoryId() |
ORemoteTask |
getFixTask(ODistributedRequest iRequest,
ORemoteTask iOriginalTask,
Object iBadResponse,
Object iGoodResponse,
String executorNode,
ODistributedServerManager dManager) |
String |
getName() |
com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE |
getQuorumType() |
com.orientechnologies.orient.core.record.ORecord |
getRecord() |
ODeleteRecordTask |
getUndoTask(ODistributedRequestId reqId) |
com.orientechnologies.orient.core.record.ORecord |
prepareUndoOperation() |
void |
toStream(DataOutput out) |
checkForClusterAvailability, execute, getPartitionKey, getRid, getVersion, setLastLSN, setLockRecords, toStringgetLastLSNgetDistributedTimeout, getNodeSource, getResultStrategy, getSynchronousTimeout, getTotalTimeout, isIdempotent, isNodeOnlineRequired, isUsingDatabase, setNodeSourcepublic static final int FACTORYID
protected byte[] content
protected byte recordType
protected int clusterId
public OCreateRecordTask()
public OCreateRecordTask(com.orientechnologies.orient.core.id.ORecordId iRid,
byte[] iContent,
int iVersion,
byte iRecordType)
public OCreateRecordTask(com.orientechnologies.orient.core.record.ORecord record)
public com.orientechnologies.orient.core.record.ORecord prepareUndoOperation()
prepareUndoOperation in class OAbstractRecordReplicatedTaskpublic void checkRecordExists()
checkRecordExists in class OAbstractRecordReplicatedTaskpublic com.orientechnologies.orient.core.record.ORecord getRecord()
getRecord in class OAbstractRecordReplicatedTaskpublic Object executeRecordTask(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database) throws Exception
executeRecordTask in class OAbstractRecordReplicatedTaskExceptionprotected com.orientechnologies.orient.core.record.ORecord forceUpdate(ODistributedServerManager manager, com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database, ODistributedRequestId requestId, com.orientechnologies.orient.core.storage.ORawBuffer loadedRecord)
public com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType in interface ORemoteTaskgetQuorumType in class OAbstractRemoteTaskpublic ORemoteTask getFixTask(ODistributedRequest iRequest, ORemoteTask iOriginalTask, Object iBadResponse, Object iGoodResponse, String executorNode, ODistributedServerManager dManager)
getFixTask in class OAbstractReplicatedTaskpublic ODeleteRecordTask getUndoTask(ODistributedRequestId reqId)
getUndoTask in class OAbstractReplicatedTaskpublic void toStream(DataOutput out) throws IOException
toStream in interface ORemoteTasktoStream in class OAbstractRecordReplicatedTaskIOExceptionpublic void fromStream(DataInput in, ORemoteTaskFactory factory) throws IOException
fromStream in interface ORemoteTaskfromStream in class OAbstractRecordReplicatedTaskIOExceptionpublic String getName()
getName in interface ORemoteTaskgetName in class OAbstractRemoteTaskpublic int getFactoryId()
Copyright © 2009–2017 OrientDB. All rights reserved.