You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.0 KiB
49 lines
1.0 KiB
/*
|
|
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
|
|
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
package com.sun.jmx.remote.protocol.iiop;
|
|
|
|
import java.io.IOException;
|
|
import java.net.MalformedURLException;
|
|
import java.util.Map;
|
|
|
|
import javax.management.remote.JMXConnectorProvider;
|
|
import javax.management.remote.JMXConnector;
|
|
import javax.management.remote.JMXServiceURL;
|
|
import javax.management.remote.rmi.RMIConnector;
|
|
|
|
public class ClientProvider implements JMXConnectorProvider {
|
|
|
|
public JMXConnector newJMXConnector(JMXServiceURL serviceURL,
|
|
Map<String,?> environment)
|
|
throws IOException {
|
|
if (!serviceURL.getProtocol().equals("iiop")) {
|
|
throw new MalformedURLException("Protocol not iiop: " +
|
|
serviceURL.getProtocol());
|
|
}
|
|
return new RMIConnector(serviceURL, environment);
|
|
}
|
|
}
|