Class CacheManagerMetricsRegistration
java.lang.Object
org.infinispan.metrics.impl.CacheManagerMetricsRegistration
- All Implemented Interfaces:
Constants
Creates and registers metrics for all components from a cache manager's global component registry.
- Since:
- 10.1.3
- Author:
- anistor@redhat.com
-
Field Summary
Fields inherited from interface Constants
CACHE_MANAGER_TAG_NAME, CACHE_TAG_NAME, INFINISPAN_PREFIX, JGROUPS_CLUSTER_TAG_NAME, JGROUPS_PREFIX, NODE_TAG_NAME, SITE_TAG_NAME, TARGET_NODE, VENDOR_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringDeprecated, for removal: This API element is subject to removal in a future version.internalRegisterMetrics(Object instance, Collection<org.infinispan.commons.stat.MetricInfo> metrics, String metricPrefix) booleanregisterExternalMetrics(Object instance, String prefix) Register metrics for a component that was manually registered later, after component registry startup.voidregisterMetrics(Object instance, String type, String componentName) Register metrics for a component that was manually registered later, after component registry startup.protected voidstart()protected voidstop()voidunregisterMetrics(Set<Object> metricIds)
-
Constructor Details
-
CacheManagerMetricsRegistration
public CacheManagerMetricsRegistration()
-
-
Method Details
-
metricsEnabled
public boolean metricsEnabled() -
internalRegisterMetrics
protected Set<Object> internalRegisterMetrics(Object instance, Collection<org.infinispan.commons.stat.MetricInfo> metrics, String metricPrefix) -
start
protected void start() -
stop
protected void stop() -
initLegacyNamePrefix
Deprecated, for removal: This API element is subject to removal in a future version.Subclasses should override this and return the metric prefix to be used for registration. This is invoked only if metrics are enabled. -
registerMetrics
-
registerExternalMetrics
-
unregisterMetrics
-