public class MetricsRecordImpl extends Object implements MetricsRecord
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
CONTEXT_KEY |
protected static String |
DEFAULT_CONTEXT |
| 构造器和说明 |
|---|
MetricsRecordImpl(String name,
long timestamp,
Iterable<MetricsTag> tags,
Iterable<Metric> metrics)
Construct a metrics record
|
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
public MetricsRecordImpl(String name, long timestamp, Iterable<MetricsTag> tags, Iterable<Metric> metrics)
name - of the recordtimestamp - of the recordtags - of the recordmetrics - of the recordpublic long timestamp()
MetricsRecordtimestamp 在接口中 MetricsRecordpublic String name()
MetricsRecordname 在接口中 MetricsRecordpublic String context()
MetricsRecordcontext 在接口中 MetricsRecordpublic Iterable<MetricsTag> tags()
MetricsRecordtags 在接口中 MetricsRecordpublic Iterable<Metric> metrics()
MetricsRecordmetrics 在接口中 MetricsRecordCopyright © 2009 The Apache Software Foundation