public class RatisMetrics extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RATIS_APPLICATION_NAME_METRICS |
| Modifier | Constructor and Description |
|---|---|
protected |
RatisMetrics(RatisMetricRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
protected static RatisMetricRegistry |
create(MetricRegistryInfo info) |
static String |
getHeartbeatSuffix(boolean heartbeat) |
RatisMetricRegistry |
getRegistry() |
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() |
public static final String RATIS_APPLICATION_NAME_METRICS
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,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–2023 The Apache Software Foundation. All rights reserved.