Interface MonitoringConfig<E>

  • All Known Implementing Classes:
    DefaultMonitoringConfig

    public interface MonitoringConfig<E>
    General monitoring configuration interface.
    Author:
    Alexey Stashok
    • Method Summary

      All Methods Instance Methods Abstract 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.
      boolean hasProbes()  
      boolean removeProbes​(E... probes)
      Remove the monitoring probes.
    • Method Detail

      • addProbes

        void addProbes​(E... probes)
        Add the monitoring probes, which will be notified about object's lifecycle events.
        Parameters:
        probes - the monitoring probes.
      • removeProbes

        boolean removeProbes​(E... probes)
        Remove the monitoring probes.
        Parameters:
        probes - the monitoring probes.
      • getProbes

        E[] getProbes()
        Get the the monitoring probes, which are registered on the objet. Please note, it's not appropriate to modify the returned array's content. Please use addProbes(Object[]) and removeProbes(Object[]) instead.
        Returns:
        the the monitoring probes, which are registered on the object.
      • hasProbes

        boolean hasProbes()
      • clearProbes

        void clearProbes()
        Removes all the monitoring probes, which are registered on the object.
      • createManagementObject

        java.lang.Object createManagementObject()
        Create the JMX Object, which represents this object.
        Returns:
        the JMX Object, which represents this object.