public abstract class AbstractMetricsSource extends Object implements MetricsSource
限定符和类型 | 字段和说明 |
---|---|
protected MetricsRegistry |
registry |
构造器和说明 |
---|
AbstractMetricsSource(String name)
Construct the source with a name with a default factory
|
AbstractMetricsSource(String name,
MetricMutableFactory mf)
Construct the source with name and a mutable metrics factory
|
protected final MetricsRegistry registry
public AbstractMetricsSource(String name, MetricMutableFactory mf)
name
- of the default recordmf
- the factory to create mutable metricspublic AbstractMetricsSource(String name)
name
- of the default recordpublic MetricsRegistry registry()
public void getMetrics(MetricsBuilder builder, boolean all)
MetricsSource
getMetrics
在接口中 MetricsSource
builder
- to contain the resulting metrics snapshotall
- if true, return all metrics even if unchanged.Copyright © 2009 The Apache Software Foundation