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 betweenServiceLoader
and CDI, by registering itself as a service and delegating to all discovered CDI beans that implementMetricsRegistryAdapter
interface.- Since:
- 20.06
- Author:
- Aleks Seovic 2020.05.04
-
-
Constructor Summary
Constructors Constructor Description CdiMetricsRegistryAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
register(com.tangosol.net.metrics.MBeanMetric metric)
Register a metric.void
remove(com.tangosol.net.metrics.MBeanMetric.Identifier identifier)
Remove a metric.
-
-
-
Method Detail
-
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
-
-