public final class CacheManagerMetricsRegistration extends Object
Constructor and Description |
---|
CacheManagerMetricsRegistration() |
Modifier and Type | Method and Description |
---|---|
protected String |
initNamePrefix()
Subclasses should override this and return the metric prefix to be used for registration.
|
protected Set<MetricID> |
internalRegisterMetrics(Object instance,
MBeanMetadata beanMetadata,
String metricPrefix) |
boolean |
metricsEnabled() |
Set<MetricID> |
registerExternalMetrics(Object instance,
String prefix)
Register metrics for a component that was manually registered later, after component registry startup.
|
void |
registerMetrics(Object instance,
String type,
String componentName)
Register metrics for a component that was manually registered later, after component registry startup.
|
protected void |
start() |
protected void |
stop() |
void |
unregisterMetrics(Set<MetricID> metricIds) |
public boolean metricsEnabled()
protected Set<MetricID> internalRegisterMetrics(Object instance, MBeanMetadata beanMetadata, String metricPrefix)
protected void start()
protected void stop()
protected String initNamePrefix()
public void registerMetrics(Object instance, String type, String componentName)
public Set<MetricID> registerExternalMetrics(Object instance, String prefix)
public void unregisterMetrics(Set<MetricID> metricIds)
Copyright © 2021 JBoss by Red Hat. All rights reserved.