|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.management.domain.proxy.ConnectorUtils
public class ConnectorUtils
JMX Connector related utility methods.
Method Summary | |
---|---|
static JMXConnector |
getConnector(JMXServiceURL url,
String username,
String password,
org.objectweb.util.monolog.api.Logger logger)
Create a connector client for the connector server at the given address, and establish connection. |
static JMXConnector |
getConnector(String urlString,
String username,
String password,
org.objectweb.util.monolog.api.Logger logger)
Create a connector client for the connector server at the given address, and establish connection. |
static String |
getProtocolFromJmxConnectorUrl(String url)
Extract the protocol from a JMX connector URL. |
static String |
getProviderUrlFromJmxConnectorUrl(String url)
Get the provider url from a JMX connector URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getProtocolFromJmxConnectorUrl(String url)
url
- JMX connector url to parse
public static String getProviderUrlFromJmxConnectorUrl(String url)
url
- JMX connector url to parse
public static JMXConnector getConnector(String urlString, String username, String password, org.objectweb.util.monolog.api.Logger logger) throws IOException, SecurityException, MalformedURLException
urlString
- connector server addresslogger
- caller provided loggerusername
- user name (or null)password
- decoded password (or null)
IOException
- if the connector client or the connection cannot be made because of a communication problem.
SecurityException
- if the connection cannot be made for security reasons.
MalformedURLException
public static JMXConnector getConnector(JMXServiceURL url, String username, String password, org.objectweb.util.monolog.api.Logger logger) throws IOException, SecurityException
url
- connector server addresslogger
- caller provided loggerusername
- user name (or null)password
- decoded password (or null)
IOException
- if the connector client or the connection cannot be made because of a communication problem.
SecurityException
- if the connection cannot be made for security reasons.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |