Package com.yahoo.metrics.simple
Class MetricReceiver.MockReceiver
- java.lang.Object
-
- com.yahoo.metrics.simple.MetricReceiver
-
- com.yahoo.metrics.simple.MetricReceiver.MockReceiver
-
- Enclosing class:
- MetricReceiver
public static final class MetricReceiver.MockReceiver extends MetricReceiver
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.metrics.simple.MetricReceiver
MetricReceiver.MockReceiver
-
-
Field Summary
-
Fields inherited from class com.yahoo.metrics.simple.MetricReceiver
nullImplementation
-
-
Constructor Summary
Constructors Constructor Description MockReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bucket
getSnapshot()
Gathers all data since last snapshotPoint
point(java.lang.String dim, java.lang.String val)
Utility method for testing-
Methods inherited from class com.yahoo.metrics.simple.MetricReceiver
declareCounter, declareCounter, declareGauge, declareGauge, declareGauge, pointBuilder, update
-
-
-
-
Method Detail
-
getSnapshot
public Bucket getSnapshot()
Gathers all data since last snapshot- Overrides:
getSnapshot
in classMetricReceiver
- Returns:
- the latest five minutes of metrics
-
point
public Point point(java.lang.String dim, java.lang.String val)
Utility method for testing
-
-