@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class AbstractMetric extends Object implements MetricsInfo
Modifier | Constructor and Description |
---|---|
protected |
AbstractMetric(MetricsInfo info)
Construct the metric
|
Modifier and Type | Method and Description |
---|---|
String |
description() |
boolean |
equals(Object obj) |
int |
hashCode() |
protected MetricsInfo |
info() |
String |
name() |
String |
toString() |
abstract org.apache.hadoop.metrics2.MetricType |
type()
Get the type of the metric
|
abstract Number |
value()
Get the value of the metric
|
abstract void |
visit(MetricsVisitor visitor)
Accept a visitor interface
|
protected AbstractMetric(MetricsInfo info)
info
- about the metricpublic String name()
name
in interface MetricsInfo
public String description()
description
in interface MetricsInfo
protected MetricsInfo info()
public abstract Number value()
public abstract org.apache.hadoop.metrics2.MetricType type()
public abstract void visit(MetricsVisitor visitor)
visitor
- of the metricCopyright © 2017 Apache Software Foundation. All rights reserved.