Class JmxHelper
- java.lang.Object
-
- org.opennms.features.jmxconfiggenerator.jmxconfig.JmxHelper
-
public class JmxHelper extends java.lang.ObjectHelper class to handle create JMX connections.
-
-
Constructor Summary
Constructors Constructor Description JmxHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static javax.management.remote.JMXConnectorcreateJmxConnector(java.lang.String username, java.lang.String password, javax.management.remote.JMXServiceURL serviceUrl)Deprecated.UseDefaultJmxConnector#createConnection(InetAddress, Mapinstead.) static javax.management.remote.JMXServiceURLcreateJmxServiceUrl(java.lang.String url, java.lang.String hostName, java.lang.String port, boolean jmxmp)Deprecated.UseJsr160ConnectionFactory#getUrl(InetAddress, int, String, String)instead.static java.util.Map<java.lang.String,java.lang.String>loadInternalDictionary()
-
-
-
Method Detail
-
createJmxServiceUrl
public static javax.management.remote.JMXServiceURL createJmxServiceUrl(java.lang.String url, java.lang.String hostName, java.lang.String port, boolean jmxmp) throws java.net.MalformedURLExceptionDeprecated.UseJsr160ConnectionFactory#getUrl(InetAddress, int, String, String)instead.- Parameters:
url-hostName-port-jmxmp-- Returns:
- Throws:
java.net.MalformedURLException
-
createJmxConnector
public static javax.management.remote.JMXConnector createJmxConnector(java.lang.String username, java.lang.String password, javax.management.remote.JMXServiceURL serviceUrl) throws java.io.IOExceptionDeprecated.UseDefaultJmxConnector#createConnection(InetAddress, Mapinstead.) - Parameters:
username-password-serviceUrl-- Returns:
- Throws:
java.io.IOException
-
loadInternalDictionary
public static java.util.Map<java.lang.String,java.lang.String> loadInternalDictionary() throws java.io.IOException- Throws:
java.io.IOException
-
-