public class ExternalOpInstrument extends Object implements OpInstrument
OpInstrument that is calculated externally on demand
from values that are "external" to this class.
The passed in ExternalOpValue is used to calculate the external OpSnapshot
value.
| Constructor and Description |
|---|
ExternalOpInstrument(String name,
ExternalOpValue externalOpValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Instrument that) |
long |
getCpuMaxTime(TimeUnit unit) |
long |
getCpuMinTime(TimeUnit unit) |
long |
getCpuTime() |
long |
getCpuTotalTime(TimeUnit unit) |
long |
getElapsedMaxTime(TimeUnit unit) |
long |
getElapsedMinTime(TimeUnit unit) |
long |
getElapsedTotalTime(TimeUnit unit) |
long |
getInvocationCount() |
long |
getMillisecondsTaken() |
String |
getName() |
long |
getResultSetSize() |
long |
getValue() |
String |
toString() |
public ExternalOpInstrument(String name, ExternalOpValue externalOpValue)
public long getInvocationCount()
getInvocationCount in interface OpInstrumentpublic long getMillisecondsTaken()
getMillisecondsTaken in interface OpInstrumentpublic long getElapsedTotalTime(TimeUnit unit)
getElapsedTotalTime in interface OpInstrumentunit - the unit to express the time withpublic long getElapsedMinTime(TimeUnit unit)
getElapsedMinTime in interface OpInstrumentunit - the unit to express the time withpublic long getElapsedMaxTime(TimeUnit unit)
getElapsedMaxTime in interface OpInstrumentunit - the unit to express the time withpublic long getResultSetSize()
getResultSetSize in interface OpInstrumentpublic long getCpuTime()
getCpuTime in interface OpInstrumentpublic long getCpuTotalTime(TimeUnit unit)
getCpuTotalTime in interface OpInstrumentunit - the unit to express the time withpublic long getCpuMinTime(TimeUnit unit)
getCpuMinTime in interface OpInstrumentunit - the unit to express the time withpublic long getCpuMaxTime(TimeUnit unit)
getCpuMaxTime in interface OpInstrumentunit - the unit to express the time withpublic String getName()
getName in interface Instrumentpublic long getValue()
getValue in interface Instrumentpublic int compareTo(Instrument that)
compareTo in interface Comparable<Instrument>Copyright © 2016 Atlassian. All rights reserved.