|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics2.impl.MetricsRecordImpl
public class MetricsRecordImpl
Field Summary | |
---|---|
protected static String |
CONTEXT_KEY
|
protected static String |
DEFAULT_CONTEXT
|
Constructor Summary | |
---|---|
MetricsRecordImpl(String name,
long timestamp,
Iterable<MetricsTag> tags,
Iterable<Metric> metrics)
Construct a metrics record |
Method Summary | |
---|---|
String |
context()
Get the context name of the metrics |
boolean |
equals(Object obj)
|
int |
hashCode()
|
Iterable<Metric> |
metrics()
Get the metrics of the record |
String |
name()
Get the record name of the metrics |
Iterable<MetricsTag> |
tags()
Get the tags of the record |
long |
timestamp()
Get the timestamp of the metrics |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String CONTEXT_KEY
protected static final String DEFAULT_CONTEXT
Constructor Detail |
---|
public MetricsRecordImpl(String name, long timestamp, Iterable<MetricsTag> tags, Iterable<Metric> metrics)
name
- of the recordtimestamp
- of the recordtags
- of the recordmetrics
- of the recordMethod Detail |
---|
public long timestamp()
MetricsRecord
timestamp
in interface MetricsRecord
public String name()
MetricsRecord
name
in interface MetricsRecord
public String context()
MetricsRecord
context
in interface MetricsRecord
public Iterable<MetricsTag> tags()
MetricsRecord
tags
in interface MetricsRecord
public Iterable<Metric> metrics()
MetricsRecord
metrics
in interface MetricsRecord
public 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 |