Back to index

munin  2.0.1
Static Public Member Functions
org.munin.plugin.jmx.BasicMBeanConnection Class Reference

List of all members.

Static Public Member Functions

static MBeanServerConnection get (Config config) throws IOException, MalformedURLException

Detailed Description

Definition at line 13 of file

Member Function Documentation

static MBeanServerConnection org.munin.plugin.jmx.BasicMBeanConnection.get ( Config  config) throws IOException, MalformedURLException [inline, static]

Definition at line 15 of file

              JMXServiceURL u = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + config.getIp() + ":" + config.getPort()+ "/jmxrmi");
        Map<String, Object> credentials = config.getConnectionCredentials();
        JMXConnector c=JMXConnectorFactory.connect(u,credentials);
        MBeanServerConnection connection=c.getMBeanServerConnection();
        return (connection);

Here is the caller graph for this function:

The documentation for this class was generated from the following file: