|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics2.MetricsRecordBuilder
public abstract class MetricsRecordBuilder
The metrics record builder interface
| Constructor Summary | |
|---|---|
MetricsRecordBuilder()
|
|
| Method Summary | |
|---|---|
abstract MetricsRecordBuilder |
add(Metric metric)
Add a pre-made immutable metric object |
abstract MetricsRecordBuilder |
add(MetricsTag tag)
Add an immutable metrics tag object |
abstract MetricsRecordBuilder |
addCounter(String name,
String description,
int value)
Add an int counter metric |
abstract MetricsRecordBuilder |
addCounter(String name,
String description,
long value)
Add an long counter metric |
abstract MetricsRecordBuilder |
addGauge(String name,
String description,
double value)
Add a double gauge metric |
abstract MetricsRecordBuilder |
addGauge(String name,
String description,
float value)
Add a float gauge metric |
abstract MetricsRecordBuilder |
addGauge(String name,
String description,
int value)
Add a int gauge metric |
abstract MetricsRecordBuilder |
addGauge(String name,
String description,
long value)
Add a long gauge metric |
abstract MetricsRecordBuilder |
setContext(String value)
Set the context tag |
abstract MetricsRecordBuilder |
tag(String name,
String description,
String value)
Add a metrics tag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetricsRecordBuilder()
| Method Detail |
|---|
public abstract MetricsRecordBuilder tag(String name,
String description,
String value)
name - of the tagdescription - of the tagvalue - of the tag
public abstract MetricsRecordBuilder add(MetricsTag tag)
tag - a pre-made tag object (potentially save an object construction)
public abstract MetricsRecordBuilder setContext(String value)
value - of the context
public abstract MetricsRecordBuilder addCounter(String name,
String description,
int value)
name - of the metricdescription - of the metricvalue - of the metric
public abstract MetricsRecordBuilder addCounter(String name,
String description,
long value)
name - of the metricdescription - of the metricvalue - of the metric
public abstract MetricsRecordBuilder addGauge(String name,
String description,
int value)
name - of the metricdescription - of the metricvalue - of the metric
public abstract MetricsRecordBuilder addGauge(String name,
String description,
long value)
name - of the metricdescription - of the metricvalue - of the metric
public abstract MetricsRecordBuilder addGauge(String name,
String description,
float value)
name - of the metricdescription - of the metricvalue - of the metric
public abstract MetricsRecordBuilder addGauge(String name,
String description,
double value)
name - of the metricdescription - of the metricvalue - of the metric
public abstract MetricsRecordBuilder add(Metric metric)
metric - the pre-made metric to save an object construction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||