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");
}
Aggregations