public class MetricMutableFactory extends Object
| 构造器和说明 |
|---|
MetricMutableFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
public MetricMutable newMetric(String name)
name - of the metricpublic MetricMutableCounterInt newCounter(String name, String description, int initValue)
name - of the metricdescription - of the metricinitValue - of the metricpublic MetricMutableCounterInt newCounterInt(String name)
name - of the metricpublic MetricMutableCounterLong newCounter(String name, String description, long initValue)
name - of the metricdescription - of the metricinitValue - of the metricpublic MetricMutableCounterLong newCounterLong(String name)
name - of the metricpublic MetricMutableGaugeInt newGauge(String name, String description, int initValue)
name - of the metricdescription - of the metricinitValue - of the metricpublic MetricMutableGaugeInt newGaugeInt(String name)
name - of the metricpublic MetricMutableGaugeLong newGauge(String name, String description, long initValue)
name - of the metricdescription - of the metricinitValue - of the metricpublic MetricMutableGaugeLong newGaugeLong(String name)
name - of the metricpublic 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 metricCopyright © 2009 The Apache Software Foundation