public class MetricsHelper extends Object
Constructor and Description |
---|
MetricsHelper() |
Modifier and Type | Method and Description |
---|---|
static <T extends io.micrometer.core.instrument.MeterRegistry> |
getRegistry(Class<T> tClass)
Gets the sub registry from root registry.
|
static void |
initMetrics(org.apache.cxf.jaxrs.JAXRSServerFactoryBean sf)
Initialized metrics.
|
static void |
registerPostStart(org.apache.cxf.jaxrs.JAXRSServerFactoryBean sf,
org.apache.cxf.endpoint.Server server)
Registers meters post start.
|
static void |
registerPreStart(ServerStatus serverStatus,
boolean enableStatus)
Register meters before start.
|
public static <T extends io.micrometer.core.instrument.MeterRegistry> T getRegistry(Class<T> tClass)
T
- the registry type.tClass
- the class to get registry of.public static void initMetrics(org.apache.cxf.jaxrs.JAXRSServerFactoryBean sf)
sf
- the server factory bean.public static void registerPreStart(ServerStatus serverStatus, boolean enableStatus)
serverStatus
- the server status object.enableStatus
- whether to enable server status metrics.public static void registerPostStart(org.apache.cxf.jaxrs.JAXRSServerFactoryBean sf, org.apache.cxf.endpoint.Server server)
sf
- the server factory bean.server
- the cxf server.Copyright © 2007–1969 The Apache Software Foundation. All rights reserved.