| 限定符和类型 | 接口和说明 |
|---|---|
interface |
BucketCounter
提供分桶计数功能,每个桶统计一定时间间隔内的计数。
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract Counter |
MetricRegistry.counter(MetricName name)
|
abstract Counter |
MetricRegistry.counter(String name)
Creates a new
Counter and registers it under the given name. |
Counter |
NOPMetricManager.getCounter(String group,
MetricName name) |
Counter |
IMetricManager.getCounter(String group,
MetricName name)
Create a
Counter metric in given group, and name. |
static Counter |
MetricManager.getCounter(String group,
MetricName name)
Create a
Counter metric in given group, and name. |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract SortedMap<MetricName,Counter> |
MetricRegistry.getCounters()
Returns a map of all the counters in the registry and their names.
|
abstract SortedMap<MetricName,Counter> |
MetricRegistry.getCounters(MetricFilter filter)
Returns a map of all the counters in the registry and their names which match the given
filter.
|
SortedMap<MetricName,Counter> |
NOPMetricManager.getCounters(String group,
MetricFilter filter) |
SortedMap<MetricName,Counter> |
IMetricManager.getCounters(String group,
MetricFilter filter) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Collector.collect(MetricName name,
Counter counter,
long timestamp) |
void |
MetricRegistryListener.onCounterAdded(MetricName name,
Counter counter)
Called when a
Counter is added to the registry. |
void |
MetricRegistryListener.Base.onCounterAdded(MetricName name,
Counter counter) |
Copyright © 2019. All rights reserved.