Class JmxUtil


  • public final class JmxUtil
    extends Object
    Utility methods to find a MBeanServer.
    • Constructor Detail

      • JmxUtil

        public JmxUtil()
    • Method Detail

      • findFirstMBeanServer

        public static MBeanServer findFirstMBeanServer()
        Retrieve the first MBeanServer found and if not found return the platform mbean server
        Returns:
        the first MBeanServer found
      • findMBeanServerForServiceUrl

        public static MBeanServer findMBeanServerForServiceUrl​(String serviceUrl)
                                                        throws IOException
        Find a MBeanServer given a service url.
        Parameters:
        serviceUrl - the service url
        Returns:
        a MBeanServer
        Throws:
        IOException
      • findMBeanServerForAgentId

        public static MBeanServer findMBeanServerForAgentId​(String agentId)
        Find a MBeanServer given an agent id.
        Parameters:
        agentId - the agent id
        Returns:
        a MBeanServer