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 protected
MonitorableImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
abort()
boolean
complete()
long
creationTimeNanos()
boolean
isAborted()
boolean
isCompleted()
boolean
isCrossNode()
boolean
isInProgress()
boolean
isSlow()
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.long
slowTimeoutNanos()
long
timeoutNanos()
-
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:
creationTimeNanos
in interfaceMonitorable
-
timeoutNanos
public long timeoutNanos()
- Specified by:
timeoutNanos
in interfaceMonitorable
-
isCrossNode
public boolean isCrossNode()
- Specified by:
isCrossNode
in interfaceMonitorable
-
slowTimeoutNanos
public long slowTimeoutNanos()
- Specified by:
slowTimeoutNanos
in interfaceMonitorable
-
isInProgress
public boolean isInProgress()
- Specified by:
isInProgress
in interfaceMonitorable
-
isAborted
public boolean isAborted()
- Specified by:
isAborted
in interfaceMonitorable
-
isCompleted
public boolean isCompleted()
- Specified by:
isCompleted
in interfaceMonitorable
-
isSlow
public boolean isSlow()
- Specified by:
isSlow
in interfaceMonitorable
-
abort
public boolean abort()
- Specified by:
abort
in interfaceMonitorable
-
complete
public boolean complete()
- Specified by:
complete
in interfaceMonitorable
-
-