Package com.yahoo.metrics.simple.jdisc
Class SimpleMetricConsumer
- java.lang.Object
-
- com.yahoo.metrics.simple.jdisc.SimpleMetricConsumer
-
- All Implemented Interfaces:
com.yahoo.jdisc.application.MetricConsumer
public class SimpleMetricConsumer extends java.lang.Object implements com.yahoo.jdisc.application.MetricConsumer
The single user facing part of the JDisc interfaces of simple metrics.- Author:
- Steinar Knutsen
-
-
Constructor Summary
Constructors Constructor Description SimpleMetricConsumer(MetricReceiver receiver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String key, java.lang.Number val, com.yahoo.jdisc.Metric.Context ctx)
com.yahoo.jdisc.Metric.Context
createContext(java.util.Map<java.lang.String,?> properties)
void
set(java.lang.String key, java.lang.Number val, com.yahoo.jdisc.Metric.Context ctx)
-
-
-
Constructor Detail
-
SimpleMetricConsumer
public SimpleMetricConsumer(MetricReceiver receiver)
-
-
Method Detail
-
set
public void set(java.lang.String key, java.lang.Number val, com.yahoo.jdisc.Metric.Context ctx)
- Specified by:
set
in interfacecom.yahoo.jdisc.application.MetricConsumer
-
add
public void add(java.lang.String key, java.lang.Number val, com.yahoo.jdisc.Metric.Context ctx)
- Specified by:
add
in interfacecom.yahoo.jdisc.application.MetricConsumer
-
createContext
public com.yahoo.jdisc.Metric.Context createContext(java.util.Map<java.lang.String,?> properties)
- Specified by:
createContext
in interfacecom.yahoo.jdisc.application.MetricConsumer
-
-