public JMXConnector newJMXConnector(JMXServiceURL serviceURL, Map environment)
throws IOException
{
if(serviceURL != null && serviceURL.getProtocol() != null && serviceURL.getProtocol().equalsIgnoreCase(PROTOCOL))
{
return new RMIConnector(serviceURL, environment);
}
else
{
throw new MalformedURLException("JMXServiceURL provided is invalid for this provider. " +
"Protocol must be " + PROTOCOL + ". JMXServiceURL provided is " +