Class DescriptiveDelegateTimer
java.lang.Object
com.codahale.metrics.Timer
com.inductiveautomation.ignition.gateway.metrics.DescriptiveDelegateTimer
- All Implemented Interfaces:
com.codahale.metrics.Counting
,com.codahale.metrics.Metered
,com.codahale.metrics.Metric
,com.codahale.metrics.Sampling
,DescriptiveMetric
public class DescriptiveDelegateTimer
extends com.codahale.metrics.Timer
implements DescriptiveMetric
A timer implementation that delegates to another Timer instance, while adding descriptive attributes.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codahale.metrics.Timer
com.codahale.metrics.Timer.Context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getCount()
getDescription
(Locale locale) A short description of what this metric represents.double
double
double
double
com.codahale.metrics.Snapshot
A short string representing the units of this metric.com.codahale.metrics.Timer.Context
time()
void
<T> T
<T> T
timeSupplier
(Supplier<T> event) void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.gateway.metrics.DescriptiveMetric
getDescription, getUnits
-
Constructor Details
-
DescriptiveDelegateTimer
-
-
Method Details
-
getDescription
Description copied from interface:DescriptiveMetric
A short description of what this metric represents. For example "JVM Heap Size" or "Thread Count" or "Subsystem X script executions"- Specified by:
getDescription
in interfaceDescriptiveMetric
-
getUnits
Description copied from interface:DescriptiveMetric
A short string representing the units of this metric. For example "MB" or "threads" or "executions"- Specified by:
getUnits
in interfaceDescriptiveMetric
-
update
- Overrides:
update
in classcom.codahale.metrics.Timer
-
update
- Overrides:
update
in classcom.codahale.metrics.Timer
-
time
- Overrides:
time
in classcom.codahale.metrics.Timer
- Throws:
Exception
-
timeSupplier
- Overrides:
timeSupplier
in classcom.codahale.metrics.Timer
-
time
- Overrides:
time
in classcom.codahale.metrics.Timer
-
time
public com.codahale.metrics.Timer.Context time()- Overrides:
time
in classcom.codahale.metrics.Timer
-
getCount
public long getCount()- Specified by:
getCount
in interfacecom.codahale.metrics.Counting
- Specified by:
getCount
in interfacecom.codahale.metrics.Metered
- Overrides:
getCount
in classcom.codahale.metrics.Timer
-
getFifteenMinuteRate
public double getFifteenMinuteRate()- Specified by:
getFifteenMinuteRate
in interfacecom.codahale.metrics.Metered
- Overrides:
getFifteenMinuteRate
in classcom.codahale.metrics.Timer
-
getFiveMinuteRate
public double getFiveMinuteRate()- Specified by:
getFiveMinuteRate
in interfacecom.codahale.metrics.Metered
- Overrides:
getFiveMinuteRate
in classcom.codahale.metrics.Timer
-
getMeanRate
public double getMeanRate()- Specified by:
getMeanRate
in interfacecom.codahale.metrics.Metered
- Overrides:
getMeanRate
in classcom.codahale.metrics.Timer
-
getOneMinuteRate
public double getOneMinuteRate()- Specified by:
getOneMinuteRate
in interfacecom.codahale.metrics.Metered
- Overrides:
getOneMinuteRate
in classcom.codahale.metrics.Timer
-
getSnapshot
public com.codahale.metrics.Snapshot getSnapshot()- Specified by:
getSnapshot
in interfacecom.codahale.metrics.Sampling
- Overrides:
getSnapshot
in classcom.codahale.metrics.Timer
-