public class MetricManager extends Object
NOPMetricManager will be bound.| Constructor and Description |
|---|
MetricManager() |
| Modifier and Type | Method and Description |
|---|---|
static BucketCounter |
getBucketCounters(String group,
MetricName name)
Create a
BucketCounter metric in given group, and name. |
static Compass |
getCompass(String group,
MetricName name)
Create a
Compass metric in given group, and name
if not exist, an instance will be created. |
static Counter |
getCounter(String group,
MetricName name)
Create a
Counter metric in given group, and name. |
static IMetricManager |
getIMetricManager()
get dynamically bound
IMetricManager instance |
static void |
register(String group,
MetricName name,
Metric metric)
Register a customized metric to specified group.
|
public static Counter getCounter(String group, MetricName name)
Counter metric in given group, and name.
if not exist, an instance will be created.group - the group of MetricRegistryname - the name of the metricpublic static BucketCounter getBucketCounters(String group, MetricName name)
BucketCounter metric in given group, and name.
if not exist, an instance will be created.group - the group of MetricRegistryname - the name of the metricBucketCounterpublic static Compass getCompass(String group, MetricName name)
Compass metric in given group, and name
if not exist, an instance will be created.group - the group of MetricRegistryname - the name of the metricCompasspublic static void register(String group, MetricName name, Metric metric)
group - the group name of MetricRegistrymetric - the metric to registerpublic static IMetricManager getIMetricManager()
IMetricManager instanceIMetricManager instance boundCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.