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 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 interface com.tangosol.net.metrics.MetricsRegistryAdapter
      Parameters:
      metric - the MBeanMetric 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 interface com.tangosol.net.metrics.MetricsRegistryAdapter
      Parameters:
      identifier - the MBeanMetric.Identifier of th metric to be removed