Class MonitorableImpl
- java.lang.Object
-
- org.apache.cassandra.db.monitoring.MonitorableImpl
-
- All Implemented Interfaces:
Monitorable
- Direct Known Subclasses:
ReadCommand
public abstract class MonitorableImpl extends java.lang.Object implements Monitorable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMonitorableImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()booleancomplete()longcreationTimeNanos()booleanisAborted()booleanisCompleted()booleanisCrossNode()booleanisInProgress()booleanisSlow()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.longslowTimeoutNanos()longtimeoutNanos()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.db.monitoring.Monitorable
name
-
-
-
-
Method Detail
-
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
-
-