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()
MetricsRecord
timestamp
在接口中 MetricsRecord
public String name()
MetricsRecord
name
在接口中 MetricsRecord
public String context()
MetricsRecord
context
在接口中 MetricsRecord
public Iterable<MetricsTag> tags()
MetricsRecord
tags
在接口中 MetricsRecord
public Iterable<Metric> metrics()
MetricsRecord
metrics
在接口中 MetricsRecord
Copyright © 2009 The Apache Software Foundation