Class MBeanServers

java.lang.Object
org.jolokia.server.core.util.jmx.MBeanServers
All Implemented Interfaces:
EventListener, NotificationListener

public class MBeanServers extends Object implements NotificationListener
Class managing the set of available MBeanServers
  • Method Details

    • handleNotification

      public void handleNotification(Notification notification, Object handback)
      Fetch Jolokia MBeanServer when it gets registered, remove it if being unregistered
      Specified by:
      handleNotification in interface NotificationListener
      Parameters:
      notification - notification emitted
      handback - not used here
    • getMBeanServers

      public Set<MBeanServerConnection> getMBeanServers()
      Get the list of the current set of MBeanServers which are active
      Returns:
      the set of current MBeanServers
    • dump

      public String dump()
      Return a dump information of all known MBeanServers
      Returns:
      information about the registered MBeanServers
    • destroy

      public void destroy()
      To be called during deconstruction.
    • getJolokiaMBeanServer

      public MBeanServerConnection getJolokiaMBeanServer()
      Get the Jolokia MBean server
      Returns:
      Jolokia MBeanServer or null