Package com.oracle.coherence.mp.metrics
Class CdiMetricsRegistryAdapter
java.lang.Object
com.oracle.coherence.mp.metrics.CdiMetricsRegistryAdapter
- All Implemented Interfaces:
com.tangosol.net.metrics.MetricsRegistryAdapter
public class CdiMetricsRegistryAdapter
extends Object
implements com.tangosol.net.metrics.MetricsRegistryAdapter
Bridges the gap between
ServiceLoader
and CDI, by registering itself
as a service and delegating to all discovered CDI beans that implement
MetricsRegistryAdapter
interface.- Since:
- 20.06
- Author:
- Aleks Seovic 2020.05.04
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CdiMetricsRegistryAdapter
public CdiMetricsRegistryAdapter()
-
-
Method Details
-
register
public void register(com.tangosol.net.metrics.MBeanMetric metric) Description copied from interface:com.tangosol.net.metrics.MetricsRegistryAdapter
Register a metric.- Specified by:
register
in interfacecom.tangosol.net.metrics.MetricsRegistryAdapter
- Parameters:
metric
- theMBeanMetric
to register
-
remove
public void remove(com.tangosol.net.metrics.MBeanMetric.Identifier identifier) Description copied from interface:com.tangosol.net.metrics.MetricsRegistryAdapter
Remove a metric.- Specified by:
remove
in interfacecom.tangosol.net.metrics.MetricsRegistryAdapter
- Parameters:
identifier
- theMBeanMetric.Identifier
of th metric to be removed
-