public class MetricRegistry
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static Metric |
SUBSTITUTE |
static Metric |
ZERO |
构造器和说明 |
---|
MetricRegistry() |
限定符和类型 | 方法和说明 |
---|---|
static Metric |
getMetric()
获取当前的信息收集器
|
static ServiceMetric |
getServiceMetric()
获取系统性能测量服务
|
static void |
register(Metric metric)
注册信息收集器
|
static void |
register(ServiceMetric serviceMetric)
注册系统性能测量服务
|
static void |
reset()
重置为初始的默认信息收集器和系统性能测量服务
|
public static void register(Metric metric)
metric
- 信息收集器public static void register(ServiceMetric serviceMetric)
serviceMetric
- 系统性能测量服务public static Metric getMetric()
public static ServiceMetric getServiceMetric()
public static void reset()