
public class ODistributedLockTask extends OAbstractReplicatedTask
ORemoteTask.RESULT_STRATEGY| Modifier and Type | Field and Description |
|---|---|
static int |
FACTORYID |
lastLSNALL, ANY, FAST_NOLOCK, LOCK, nodeSource| Constructor and Description |
|---|
ODistributedLockTask() |
ODistributedLockTask(String lockManagerServer,
String resource,
long timeout,
boolean acquire) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIsValid(ODistributedServerManager dManager)
Checks the request is still valid.
|
Object |
execute(ODistributedRequestId msgId,
OServer iServer,
ODistributedServerManager iManager,
ODatabaseDocumentInternal database) |
void |
fromStream(DataInput in,
ORemoteTaskFactory factory) |
long |
getDistributedTimeout() |
int |
getFactoryId() |
String |
getName() |
int[] |
getPartitionKey() |
OCommandDistributedReplicateRequest.QUORUM_TYPE |
getQuorumType() |
ORemoteTask.RESULT_STRATEGY |
getResultStrategy() |
ORemoteTask |
getUndoTask(ODistributedServerManager dManager,
ODistributedRequestId reqId,
List<String> servers) |
boolean |
isNodeOnlineRequired() |
boolean |
isUsingDatabase() |
void |
toStream(DataOutput out) |
String |
toString() |
void |
undo(ODistributedServerManager iManager) |
getFixTask, getLastLSNgetNodeSource, getSynchronousTimeout, getTotalTimeout, hasResponse, isIdempotent, setNodeSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfinished, receivedpublic static final int FACTORYID
public Object execute(ODistributedRequestId msgId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception
execute in interface ORemoteTaskexecute in class OAbstractRemoteTaskExceptionpublic void undo(ODistributedServerManager iManager)
public ORemoteTask getUndoTask(ODistributedServerManager dManager, ODistributedRequestId reqId, List<String> servers)
getUndoTask in class OAbstractReplicatedTaskpublic int[] getPartitionKey()
getPartitionKey in interface ORemoteTaskgetPartitionKey in class OAbstractRemoteTaskpublic OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
getQuorumType in interface ORemoteTaskgetQuorumType in class OAbstractRemoteTaskpublic ORemoteTask.RESULT_STRATEGY getResultStrategy()
getResultStrategy in interface ORemoteTaskgetResultStrategy in class OAbstractRemoteTaskpublic boolean isUsingDatabase()
isUsingDatabase in interface ORemoteTaskisUsingDatabase in class OAbstractRemoteTaskpublic void toStream(DataOutput out) throws IOException
toStream in interface ORemoteTasktoStream in class OAbstractRemoteTaskIOExceptionpublic void fromStream(DataInput in, ORemoteTaskFactory factory) throws IOException
fromStream in interface ORemoteTaskfromStream in class OAbstractRemoteTaskIOExceptionpublic boolean isNodeOnlineRequired()
isNodeOnlineRequired in interface ORemoteTaskisNodeOnlineRequired in class OAbstractRemoteTaskpublic void checkIsValid(ODistributedServerManager dManager)
ORemoteTaskcheckIsValid in interface ORemoteTaskcheckIsValid in class OAbstractRemoteTaskpublic 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 OAbstractRemoteTaskCopyright © 2009–2025 OrientDB. All rights reserved.