Package org.jolokia.server.core.util.jmx
Class MBeanServers
java.lang.Object
org.jolokia.server.core.util.jmx.MBeanServers
- All Implemented Interfaces:
EventListener,NotificationListener
Class managing the set of available MBeanServers
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()To be called during deconstruction.dump()Return a dump information of all known MBeanServersGet the Jolokia MBean serverGet the list of the current set of MBeanServers which are activevoidhandleNotification(Notification notification, Object handback) Fetch Jolokia MBeanServer when it gets registered, remove it if being unregistered
-
Method Details
-
handleNotification
Fetch Jolokia MBeanServer when it gets registered, remove it if being unregistered- Specified by:
handleNotificationin interfaceNotificationListener- Parameters:
notification- notification emittedhandback- not used here
-
getMBeanServers
Get the list of the current set of MBeanServers which are active- Returns:
- the set of current MBeanServers
-
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
Get the Jolokia MBean server- Returns:
- Jolokia MBeanServer or null
-