Class RmiProxyConnectionFactory

    • Constructor Detail

      • RmiProxyConnectionFactory

        public RmiProxyConnectionFactory()
    • Method Detail

      • getConnection

        public JMXProxyConnection getConnection​(String server,
                                                int jmxPort,
                                                int rmiPort,
                                                String userName,
                                                String password)
        Returns a JMXProxyFactory for a specific server, jmxport, rmiport, username, and password. Makes sure that an initial context for JNDI has been specified. Then constructs a RMI-based JMXServiceUrl using the server and port. Finally connects to the URL using the name and password.
        Specified by:
        getConnection in interface JMXProxyConnectionFactory
        Parameters:
        server - the given remote server
        jmxPort - the JMX port on that server
        rmiPort - the RMI port on that server (dedicated to the above jmxPort)
        userName - the userName for access to the MBeanserver on that server
        password - the password for access to the MBeanserver on that server
        Returns:
        a JMXProxyFactory with the above properties.