Class MonitorableImpl
java.lang.Object
org.apache.cassandra.db.monitoring.MonitorableImpl
- All Implemented Interfaces:
Monitorable
- Direct Known Subclasses:
ReadCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabort()booleancomplete()longbooleanbooleanbooleanbooleanbooleanisSlow()voidsetMonitoringTime(long approxCreationTimeNanos, boolean isCrossNode, long timeoutNanos, long slowTimeoutNanos) This setter is ugly but the construction chain to ReadCommand is too complex, it would require passing new parameters to all serializers or specializing the serializers to accept these message properties.longlongMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.monitoring.Monitorable
name
-
Constructor Details
-
MonitorableImpl
protected MonitorableImpl()
-
-
Method Details
-
setMonitoringTime
public void setMonitoringTime(long approxCreationTimeNanos, boolean isCrossNode, long timeoutNanos, long slowTimeoutNanos) This setter is ugly but the construction chain to ReadCommand is too complex, it would require passing new parameters to all serializers or specializing the serializers to accept these message properties. -
creationTimeNanos
public long creationTimeNanos()- Specified by:
creationTimeNanosin interfaceMonitorable
-
timeoutNanos
public long timeoutNanos()- Specified by:
timeoutNanosin interfaceMonitorable
-
isCrossNode
public boolean isCrossNode()- Specified by:
isCrossNodein interfaceMonitorable
-
slowTimeoutNanos
public long slowTimeoutNanos()- Specified by:
slowTimeoutNanosin interfaceMonitorable
-
isInProgress
public boolean isInProgress()- Specified by:
isInProgressin interfaceMonitorable
-
isAborted
public boolean isAborted()- Specified by:
isAbortedin interfaceMonitorable
-
isCompleted
public boolean isCompleted()- Specified by:
isCompletedin interfaceMonitorable
-
isSlow
public boolean isSlow()- Specified by:
isSlowin interfaceMonitorable
-
abort
public boolean abort()- Specified by:
abortin interfaceMonitorable
-
complete
public boolean complete()- Specified by:
completein interfaceMonitorable
-