public class RatisMetrics extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
RATIS_APPLICATION_NAME_METRICS |
| 限定符 | 构造器和说明 |
|---|---|
protected |
RatisMetrics(RatisMetricRegistry registry) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static RatisMetricRegistry |
create(MetricRegistryInfo info) |
static String |
getHeartbeatSuffix(boolean heartbeat) |
RatisMetricRegistry |
getRegistry() |
protected static <T extends Enum<T>> |
newCounterMap(Class<T> clazz,
Function<T,LongCounter> constructor) |
protected static <T extends Enum<T>> |
newCounterMaps(Class<T> clazz) |
protected Function<Boolean,LongCounter> |
newHeartbeatCounter(String prefix) |
protected Function<Boolean,Timekeeper> |
newHeartbeatTimer(String prefix) |
protected static <T extends Enum<T>> |
newTimerMap(Class<T> clazz,
Function<T,Timekeeper> constructor) |
void |
unregister() |
protected RatisMetrics(RatisMetricRegistry registry)
public static String getHeartbeatSuffix(boolean heartbeat)
protected static <T extends Enum<T>> Map<T,Map<String,LongCounter>> newCounterMaps(Class<T> clazz)
protected static <T extends Enum<T>> Map<T,LongCounter> newCounterMap(Class<T> clazz, Function<T,LongCounter> constructor)
protected static <T extends Enum<T>> Map<T,Timekeeper> newTimerMap(Class<T> clazz, Function<T,Timekeeper> constructor)
protected static RatisMetricRegistry create(MetricRegistryInfo info)
public void unregister()
public final RatisMetricRegistry getRegistry()
protected Function<Boolean,Timekeeper> newHeartbeatTimer(String prefix)
protected Function<Boolean,LongCounter> newHeartbeatCounter(String prefix)
Copyright © 2017–2024 The Apache Software Foundation. All rights reserved.