Package dk.netarkivet.monitor.jmx
Class RmiProxyConnectionFactory
- java.lang.Object
-
- dk.netarkivet.monitor.jmx.RmiProxyConnectionFactory
-
- All Implemented Interfaces:
JMXProxyConnectionFactory
public class RmiProxyConnectionFactory extends Object implements JMXProxyConnectionFactory
Creates RMI-based JMX connections to remote servers.
-
-
Constructor Summary
Constructors Constructor Description RmiProxyConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JMXProxyConnection
getConnection(String server, int jmxPort, int rmiPort, String userName, String password)
Returns a JMXProxyFactory for a specific server, jmxport, rmiport, username, and password.
-
-
-
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 interfaceJMXProxyConnectionFactory
- Parameters:
server
- the given remote serverjmxPort
- the JMX port on that serverrmiPort
- the RMI port on that server (dedicated to the above jmxPort)userName
- the userName for access to the MBeanserver on that serverpassword
- the password for access to the MBeanserver on that server- Returns:
- a JMXProxyFactory with the above properties.
-
-