|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.management.extensions.util.ConnectorUtils
public class ConnectorUtils
JMX Connector related utility methods. TODO The bellow comments are temporary: This is class is based on the org.ow2.lib.management.domain.proxy.ConnectorUtils. The difference is that the present class doesn't use jonas classes any more. The old class will dissapear once the transition of management code to the new management sub-projet will be ended.
Method Summary | |
---|---|
static JMXConnector |
getConnector(JMXServiceURL url,
String username,
String password)
Create a connector client for the connector server at the given address, and establish connection. |
static JMXConnector |
getConnector(String urlString,
String username,
String password)
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 JMXConnector getConnector(JMXServiceURL url, String username, String password) throws IOException, SecurityException
url
- connector server addressusername
- 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.public static JMXConnector getConnector(String urlString, String username, String password) throws IOException, SecurityException, MalformedURLException
urlString
- connector server addressusername
- 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 String getProtocolFromJmxConnectorUrl(String url)
url
- JMX connector url to parse
public static String getProviderUrlFromJmxConnectorUrl(String url)
url
- JMX connector url to parse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |