Interface MonitoringConfig<E>

All Known Implementing Classes:
DefaultMonitoringConfig

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

    Modifier and Type
    Method
    Description
    void
    addProbes(E... probes)
    Add the monitoring probes, which will be notified about object's lifecycle events.
    void
    Removes all the monitoring probes, which are registered on the object.
    Create the JMX Object, which represents this object.
    E[]
    Get the the monitoring probes, which are registered on the objet.
    boolean
     
    boolean
    removeProbes(E... probes)
    Remove the monitoring probes.
  • Method Details

    • 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

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