public static JMXConnector getJmxConnector()

in src/main/java/org/apache/cassandra/distributed/shared/JMXUtil.java [36:47]


    public static JMXConnector getJmxConnector(IInstanceConfig config) {
        String jmxHost = getJmxHost(config);
        String url = String.format(JMX_SERVICE_URL_FMT, jmxHost, config.jmxPort());
        try
        {
            return JMXConnectorFactory.connect(new JMXServiceURL(url), null);
        }
        catch (IOException e)
        {
            throw new RuntimeException(e);
        }
    }