Class JMXServerUtils


  • public class JMXServerUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      JMXServerUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.management.remote.JMXConnectorServer createJMXServer​(int port, boolean local)  
      static javax.management.remote.JMXConnectorServer createJMXServer​(int port, java.lang.String hostname, boolean local)
      Creates a server programmatically.
      static void logJmxServiceUrl​(java.net.InetAddress serverAddress, int port)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JMXServerUtils

        public JMXServerUtils()
    • Method Detail

      • createJMXServer

        public static javax.management.remote.JMXConnectorServer createJMXServer​(int port,
                                                                                 java.lang.String hostname,
                                                                                 boolean local)
                                                                          throws java.io.IOException
        Creates a server programmatically. This allows us to set parameters which normally are inaccessable.
        Throws:
        java.io.IOException
      • createJMXServer

        public static javax.management.remote.JMXConnectorServer createJMXServer​(int port,
                                                                                 boolean local)
                                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • logJmxServiceUrl

        public static void logJmxServiceUrl​(java.net.InetAddress serverAddress,
                                            int port)