程序包 | 说明 |
---|---|
org.apache.hadoop.metrics2 |
Metrics 2.0
|
org.apache.hadoop.metrics2.lib |
限定符和类型 | 方法和说明 |
---|---|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.add(Metric metric)
Add a pre-made immutable metric object
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.add(MetricsTag tag)
Add an immutable metrics tag object
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addCounter(String name,
String description,
int value)
Add an int counter metric
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addCounter(String name,
String description,
long value)
Add an long counter metric
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(String name,
String description,
double value)
Add a double gauge metric
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(String name,
String description,
float value)
Add a float gauge metric
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(String name,
String description,
int value)
Add a int gauge metric
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.addGauge(String name,
String description,
long value)
Add a long gauge metric
|
MetricsRecordBuilder |
MetricsBuilder.addRecord(String name)
Add a metrics record
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.setContext(String value)
Set the context tag
|
abstract MetricsRecordBuilder |
MetricsRecordBuilder.tag(String name,
String description,
String value)
Add a metrics tag
|
限定符和类型 | 方法和说明 |
---|---|
void |
MetricMutable.snapshot(MetricsRecordBuilder builder)
Get a sampe/snapshot of metric if changed
|
void |
MetricsRegistry.snapshot(MetricsRecordBuilder builder,
boolean all)
Sample all the mutable metrics and put the snapshot in the builder
|
void |
MetricMutableStat.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MetricMutableGaugeLong.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MetricMutableGaugeInt.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MetricMutableCounterLong.snapshot(MetricsRecordBuilder builder,
boolean all) |
void |
MetricMutableCounterInt.snapshot(MetricsRecordBuilder builder,
boolean all) |
abstract void |
MetricMutable.snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot/snapshot of the metric
|
Copyright © 2009 The Apache Software Foundation