Class OUnreachableServerLocalTask
java.lang.Object
com.orientechnologies.orient.server.distributed.task.OAbstractRemoteTask
com.orientechnologies.orient.server.distributed.impl.task.OUnreachableServerLocalTask
- All Implemented Interfaces:
ORemoteTask
Task executed when a server becomes unreachable. It's responsible to rollback all the
transactions and free all the locks owned by the unreachable server. This is executed as task to
block any concurrent operation and to be in the request queue after any request sent by the
unreachable server and not executed yet.
- Author:
- Luca Garulli (l.garulli--at--orientdb.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.server.distributed.task.ORemoteTask
ORemoteTask.RESULT_STRATEGY -
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.server.distributed.task.OAbstractRemoteTask
nodeSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ODistributedRequestId msgId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) longintgetName()booleanbooleantoString()Methods inherited from class com.orientechnologies.orient.server.distributed.task.OAbstractRemoteTask
fromStream, getNodeSource, getResultStrategy, getSynchronousTimeout, getTotalTimeout, isIdempotent, isUsingDatabase, setNodeSource, toStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.distributed.task.ORemoteTask
finished, received
-
Field Details
-
FACTORYID
public static final int FACTORYID- See Also:
-
-
Constructor Details
-
OUnreachableServerLocalTask
-
-
Method Details
-
execute
public Object execute(ODistributedRequestId msgId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception - Throws:
Exception
-
hasResponse
public boolean hasResponse()- Specified by:
hasResponsein interfaceORemoteTask- Overrides:
hasResponsein classOAbstractRemoteTask
-
getName
-
getDistributedTimeout
public long getDistributedTimeout()- Specified by:
getDistributedTimeoutin interfaceORemoteTask- Overrides:
getDistributedTimeoutin classOAbstractRemoteTask
-
getQuorumType
-
isNodeOnlineRequired
public boolean isNodeOnlineRequired()- Specified by:
isNodeOnlineRequiredin interfaceORemoteTask- Overrides:
isNodeOnlineRequiredin classOAbstractRemoteTask
-
getFactoryId
public int getFactoryId() -
toString
- Overrides:
toStringin classOAbstractRemoteTask
-