Class JMX


  • public class JMX
    extends java.lang.Object
    A helper class to open jmx connections.
    See Also:
    Client
    • Constructor Summary

      Constructors 
      Constructor Description
      JMX()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static Client open​(java.lang.String url)
      Deprecated.
      static Client open​(java.lang.String url, long timeout)
      connect to a remote host by fully provided url with timeout param
      static Client open​(java.lang.String protocol, java.lang.String hostname, int port, java.util.Map env, long timeout)
      connect to a remote host
      static Client open​(java.lang.String url, java.lang.String username, java.lang.String password)
      Deprecated.
      static Client open​(java.lang.String url, java.lang.String username, java.lang.String password, long timeoutInMs)
      connect to a remote host with timeout
      • Methods inherited from class java.lang.Object

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

      • JMX

        public JMX()
    • Method Detail

      • open

        @Deprecated
        public static Client open​(java.lang.String url)
                           throws java.io.IOException
        Deprecated.
        connect to a remote host by fully provided url. and won't timeout.
        Parameters:
        url - the url
        Returns:
        JMX client
        Throws:
        java.io.IOException - If some other I/O error occurs
        See Also:
        use this version with timeout param
      • open

        public static Client open​(java.lang.String url,
                                  long timeout)
                           throws java.io.IOException
        connect to a remote host by fully provided url with timeout param
        Parameters:
        url - the url
        timeout - the time out value in mill seconds
        Returns:
        JMX client
        Throws:
        java.io.IOException - If some other I/O error occurs
      • open

        @Deprecated
        public static Client open​(java.lang.String url,
                                  java.lang.String username,
                                  java.lang.String password)
                           throws java.io.IOException
        Deprecated.
        connect to a remote host. and won't timeout.
        Parameters:
        url - url
        username - username
        password - password
        Returns:
        JMX client
        Throws:
        java.io.IOException - If some other I/O error occurs
        See Also:
        use this version with timeout param
      • open

        public static Client open​(java.lang.String url,
                                  java.lang.String username,
                                  java.lang.String password,
                                  long timeoutInMs)
                           throws java.io.IOException
        connect to a remote host with timeout
        Parameters:
        url - url
        username - username
        password - password
        timeoutInMs - the timeout in mill seconds
        Returns:
        JMX Client
        Throws:
        java.io.IOException - If some other I/O error occurs
      • open

        public static Client open​(java.lang.String protocol,
                                  java.lang.String hostname,
                                  int port,
                                  java.util.Map env,
                                  long timeout)
                           throws java.io.IOException
        connect to a remote host
        Parameters:
        protocol - the protocol of the jmx, eg, rmi, jmxmp
        hostname - the host ip
        port - the jmx port
        env - the env of the jmx, eg, credential, SSLSockets
        timeout - the timeout in mill seconds
        Returns:
        JMX Client
        Throws:
        java.io.IOException - If some other I/O error occurs