|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics2.AbstractMetric
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class AbstractMetric
The immutable metric
| Constructor Summary | |
|---|---|
protected |
AbstractMetric(MetricsInfo info)
Construct the metric |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractMetric(MetricsInfo info)
info - about the metric| Method Detail |
|---|
public String name()
name in interface MetricsInfopublic String description()
description in interface MetricsInfoprotected MetricsInfo info()
public abstract Number value()
public abstract org.apache.hadoop.metrics2.MetricType type()
public abstract void visit(MetricsVisitor visitor)
visitor - of the metricpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||