Class OEnterpriseStatsTask
java.lang.Object
com.orientechnologies.orient.server.distributed.task.OAbstractRemoteTask
com.orientechnologies.orient.server.distributed.impl.task.OEnterpriseStatsTask
- All Implemented Interfaces:
ORemoteTask
Distributed message between server to exchange stats.
- 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) longComputes the timeout according to the transaction size.intgetName()longgetSynchronousTimeout(int iSynchNodes) longgetTotalTimeout(int iTotalNodes) booleanMethods inherited from class com.orientechnologies.orient.server.distributed.task.OAbstractRemoteTask
fromStream, getNodeSource, hasResponse, isIdempotent, isNodeOnlineRequired, setNodeSource, toStream, toStringMethods 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
-
OEnterpriseStatsTask
public OEnterpriseStatsTask()
-
-
Method Details
-
execute
public Object execute(ODistributedRequestId msgId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception - Throws:
Exception
-
getQuorumType
-
isUsingDatabase
public boolean isUsingDatabase()- Specified by:
isUsingDatabasein interfaceORemoteTask- Overrides:
isUsingDatabasein classOAbstractRemoteTask
-
getResultStrategy
- Specified by:
getResultStrategyin interfaceORemoteTask- Overrides:
getResultStrategyin classOAbstractRemoteTask
-
getDistributedTimeout
public long getDistributedTimeout()Computes the timeout according to the transaction size.- Specified by:
getDistributedTimeoutin interfaceORemoteTask- Overrides:
getDistributedTimeoutin classOAbstractRemoteTask- Returns:
-
getSynchronousTimeout
public long getSynchronousTimeout(int iSynchNodes) - Specified by:
getSynchronousTimeoutin interfaceORemoteTask- Overrides:
getSynchronousTimeoutin classOAbstractRemoteTask
-
getTotalTimeout
public long getTotalTimeout(int iTotalNodes) - Specified by:
getTotalTimeoutin interfaceORemoteTask- Overrides:
getTotalTimeoutin classOAbstractRemoteTask
-
getName
-
getFactoryId
public int getFactoryId()
-