Search in sources :

Example 1 with RMIConnector

use of javax.management.remote.rmi.RMIConnector in project jdk8u_jdk by JetBrains.

the class JMXConnectorProviderImpl method newJMXConnector.

public JMXConnector newJMXConnector(JMXServiceURL url, Map<String, ?> map) throws IOException {
    final String protocol = url.getProtocol();
    called = true;
    System.out.println("JMXConnectorProviderImpl called");
    if (protocol.equals("rmi"))
        return new RMIConnector(url, map);
    if (protocol.equals("throw-provider-exception"))
        throw new JMXProviderException("I have been asked to throw");
    throw new IllegalArgumentException("UNKNOWN PROTOCOL");
}
Also used : RMIConnector(javax.management.remote.rmi.RMIConnector) JMXProviderException(javax.management.remote.JMXProviderException)

Aggregations

JMXProviderException (javax.management.remote.JMXProviderException)1 RMIConnector (javax.management.remote.rmi.RMIConnector)1