Class DefaultMonitoringConfig<E>

  • All Implemented Interfaces:
    MonitoringConfig<E>

    public class DefaultMonitoringConfig<E>
    extends java.lang.Object
    implements MonitoringConfig<E>
    Default monitoring configuration, with no JMX support. The createManagementObject() method returns null, so if a child class requires JMX support, it has to implement this method properly.
    Author:
    Alexey Stashok
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addProbes​(E... probes)
      Add the monitoring probes, which will be notified about object's lifecycle events.
      void clearProbes()
      Removes all the monitoring probes, which are registered on the object.
      java.lang.Object createManagementObject()
      Create the JMX Object, which represents this object.
      E[] getProbes()
      Get the the monitoring probes, which are registered on the objet.
      E[] getProbesUnsafe()
      Get the monitoring probes array (direct).
      boolean hasProbes()  
      boolean removeProbes​(E... probes)
      Remove the monitoring probes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMonitoringConfig

        public DefaultMonitoringConfig​(java.lang.Class<E> clazz)
    • Method Detail

      • addProbes

        public final void addProbes​(E... probes)
        Add the monitoring probes, which will be notified about object's lifecycle events.
        Specified by:
        addProbes in interface MonitoringConfig<E>
        Parameters:
        probes - the monitoring probes.
      • removeProbes

        public final boolean removeProbes​(E... probes)
        Remove the monitoring probes.
        Specified by:
        removeProbes in interface MonitoringConfig<E>
        Parameters:
        probes - the monitoring probes.
      • getProbesUnsafe

        public final E[] getProbesUnsafe()
        Get the monitoring probes array (direct).
        Returns:
        the monitoring probes array (direct).
      • clearProbes

        public final void clearProbes()
        Removes all the monitoring probes, which are registered on the object.
        Specified by:
        clearProbes in interface MonitoringConfig<E>
      • createManagementObject

        public java.lang.Object createManagementObject()
        Create the JMX Object, which represents this object.
        Specified by:
        createManagementObject in interface MonitoringConfig<E>
        Returns:
        the JMX Object, which represents this object.