| Constructor and Description |
|---|
MetricRegistry() |
| Modifier and Type | Method and Description |
|---|---|
abstract Compass |
compass(MetricName name)
Create a FastCompass with given name
|
abstract Counter |
counter(MetricName name)
|
abstract Counter |
counter(String name)
Creates a new
Counter and registers it under the given name. |
abstract Map<MetricName,Compass> |
getCompasses()
Returns a map of all the compasses in the registry and their names.
|
abstract Map<MetricName,Compass> |
getCompasses(MetricFilter filter)
Returns a map of all the compasses in the registry and their names which match the given filter.
|
abstract Map<MetricName,Counter> |
getCounters()
Returns a map of all the counters in the registry and their names.
|
abstract Map<MetricName,Counter> |
getCounters(MetricFilter filter)
Returns a map of all the counters in the registry and their names which match the given
filter.
|
abstract Map<MetricName,Gauge> |
getGauges()
Returns a map of all the gauges in the registry and their names.
|
abstract Map<MetricName,Gauge> |
getGauges(MetricFilter filter)
Returns a map of all the gauges in the registry and their names which match the given filter.
|
abstract Map<MetricName,Metric> |
getMetrics(MetricFilter filter)
Returns a map of all the metrics in the registry and their names which match the given filter
|
abstract Set<MetricName> |
getNames()
Returns a set of the names of all the metrics in the registry.
|
abstract <T extends Metric> |
register(MetricName name,
T metric)
Given a
Metric, registers it under the given name. |
abstract <T extends Metric> |
register(String name,
T metric)
Given a
Metric, registers it under the given name. |
abstract void |
registerAll(MetricSet metrics)
Given a metric set, registers them.
|
abstract boolean |
remove(MetricName name)
Removes the metric with the given name.
|
abstract void |
removeMatching(MetricFilter filter)
Removes all metrics which match the given filter.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricslastUpdateTimepublic abstract <T extends Metric> T register(String name, T metric) throws IllegalArgumentException
Metric, registers it under the given name.T - the type of the metricname - the name of the metricmetric - the metricmetricIllegalArgumentException - if the name is already registeredpublic abstract <T extends Metric> T register(MetricName name, T metric) throws IllegalArgumentException
Metric, registers it under the given name.T - the type of the metricname - the name of the metricmetric - the metricmetricIllegalArgumentException - if the name is already registeredpublic abstract void registerAll(MetricSet metrics) throws IllegalArgumentException
metrics - a set of metricsIllegalArgumentException - if any of the names are already registeredpublic abstract Counter counter(String name)
Counter and registers it under the given name.name - the name of the metricCounterpublic abstract Counter counter(MetricName name)
Counter registered under this name; or create and register
a new Counter if none is registered.name - the name of the metricCounterpublic abstract Compass compass(MetricName name)
name - the name of the metricpublic abstract boolean remove(MetricName name)
name - the name of the metricpublic abstract void removeMatching(MetricFilter filter)
filter - a filterpublic abstract Set<MetricName> getNames()
public abstract Map<MetricName,Gauge> getGauges()
public abstract Map<MetricName,Gauge> getGauges(MetricFilter filter)
filter - the metric filter to matchpublic abstract Map<MetricName,Counter> getCounters()
public abstract Map<MetricName,Counter> getCounters(MetricFilter filter)
filter - the metric filter to matchpublic abstract Map<MetricName,Compass> getCompasses()
public abstract Map<MetricName,Compass> getCompasses(MetricFilter filter)
filter - the metric filter to matchpublic abstract Map<MetricName,Metric> getMetrics(MetricFilter filter)
filter - the metric filter to matchCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.