Package com.ocient.metrics
Class Metric<T>
java.lang.Object
com.ocient.metrics.Metric<T>
- All Implemented Interfaces:
Supplier<T>
- Direct Known Subclasses:
Gauge,PerfCounter
public abstract class Metric<T> extends Object implements Supplier<T>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetric.CounterTypeThe different types of counters.static classMetric.DataTypeThe metric's data type.static classMetric.MetricPathThe identifier than a perfCounter.static classMetric.NamedTagA Tag with a String or Integer identifierstatic classMetric.TagTags that can be associated with a metric.static classMetric.UnitsPossible units for interpreting counter values. -
Method Summary
Modifier and Type Method Description abstract Metric.CounterTypecounterType()Metric.DataTypedataType()Metric.MetricPathpath()Metric.Unitsunits()
-
Method Details
-
path
- Returns:
- this perf counter's path
-
dataType
- Returns:
- this perf counter's data
Metric.DataType
-
units
- Returns:
- the units of this perf counter
-
counterType
- Returns:
- this perf counter's data
Metric.CounterType
-