|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics2.lib.MetricMutableFactory
public class MetricMutableFactory
Factory class for mutable metrics
Constructor Summary | |
---|---|
MetricMutableFactory()
|
Method Summary | |
---|---|
MetricMutableCounterInt |
newCounter(String name,
String description,
int initValue)
Create a mutable integer counter |
MetricMutableCounterLong |
newCounter(String name,
String description,
long initValue)
Create a mutable long integer counter |
MetricMutableCounterInt |
newCounterInt(String name)
Create a mutable integer counter with name only. |
MetricMutableCounterLong |
newCounterLong(String name)
Create a mutable long integer counter with a name Usually gets overridden. |
MetricMutableGaugeInt |
newGauge(String name,
String description,
int initValue)
Create a mutable integer gauge |
MetricMutableGaugeLong |
newGauge(String name,
String description,
long initValue)
Create a mutable long integer gauge |
MetricMutableGaugeInt |
newGaugeInt(String name)
Create a mutable integer gauge with name only. |
MetricMutableGaugeLong |
newGaugeLong(String name)
Create a mutable long integer gauge with name only. |
MetricMutable |
newMetric(String name)
Create a new mutable metric by name Usually overridden by app specific factory |
MetricMutableStat |
newStat(String name)
Create a mutable stat metric with name only. |
MetricMutableStat |
newStat(String name,
String description,
String sampleName,
String valueName,
boolean extended)
Create a mutable stat metric |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetricMutableFactory()
Method Detail |
---|
public MetricMutable newMetric(String name)
name
- of the metric
public MetricMutableCounterInt newCounter(String name, String description, int initValue)
name
- of the metricdescription
- of the metricinitValue
- of the metric
public MetricMutableCounterInt newCounterInt(String name)
name
- of the metric
public MetricMutableCounterLong newCounter(String name, String description, long initValue)
name
- of the metricdescription
- of the metricinitValue
- of the metric
public MetricMutableCounterLong newCounterLong(String name)
name
- of the metric
public MetricMutableGaugeInt newGauge(String name, String description, int initValue)
name
- of the metricdescription
- of the metricinitValue
- of the metric
public MetricMutableGaugeInt newGaugeInt(String name)
name
- of the metric
public MetricMutableGaugeLong newGauge(String name, String description, long initValue)
name
- of the metricdescription
- of the metricinitValue
- of the metric
public MetricMutableGaugeLong newGaugeLong(String name)
name
- of the metric
public MetricMutableStat newStat(String name, String description, String sampleName, String valueName, boolean extended)
name
- of the metricdescription
- of the metricsampleName
- of the metric (e.g., ops)valueName
- of the metric (e.g., time or latency)extended
- if true, produces extended stat (stdev, min/max etc.)
public MetricMutableStat newStat(String name)
name
- of the metric
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |