Class JmxHelper
- java.lang.Object
-
- org.opennms.features.jmxconfiggenerator.jmxconfig.JmxHelper
-
public class JmxHelper extends Object
Helper 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 JMXConnector
createJmxConnector(String username, String password, JMXServiceURL serviceUrl)
Deprecated.UseDefaultJmxConnector#createConnection(InetAddress, Map
instead.) static JMXServiceURL
createJmxServiceUrl(String url, String hostName, String port, boolean jmxmp)
Deprecated.UseJsr160ConnectionFactory#getUrl(InetAddress, int, String, String)
instead.static Map<String,String>
loadInternalDictionary()
-
-
-
Method Detail
-
createJmxServiceUrl
public static JMXServiceURL createJmxServiceUrl(String url, String hostName, String port, boolean jmxmp) throws MalformedURLException
Deprecated.UseJsr160ConnectionFactory#getUrl(InetAddress, int, String, String)
instead.- Parameters:
url
-hostName
-port
-jmxmp
-- Returns:
- Throws:
MalformedURLException
-
createJmxConnector
public static JMXConnector createJmxConnector(String username, String password, JMXServiceURL serviceUrl) throws IOException
Deprecated.UseDefaultJmxConnector#createConnection(InetAddress, Map
instead.) - Parameters:
username
-password
-serviceUrl
-- Returns:
- Throws:
IOException
-
loadInternalDictionary
public static Map<String,String> loadInternalDictionary() throws IOException
- Throws:
IOException
-
-