|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 record| Method Detail |
|---|
public long timestamp()
MetricsRecord
timestamp in interface MetricsRecordpublic String name()
MetricsRecord
name in interface MetricsRecordpublic String context()
MetricsRecord
context in interface MetricsRecordpublic Iterable<MetricsTag> tags()
MetricsRecord
tags in interface MetricsRecordpublic Iterable<Metric> metrics()
MetricsRecord
metrics in interface MetricsRecordpublic 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 | |||||||||