|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 metricMethod Detail |
---|
public 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 metricpublic boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |