|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.commands.admin.util.JMXConnectionHelper
public class JMXConnectionHelper
Wrap a JMXConnector.
| Constructor Summary | |
|---|---|
JMXConnectionHelper(JMXServiceURL url,
String username,
String password)
Construct a new JMXConnectionHelper using the provided URL and credentials. |
|
JMXConnectionHelper(JMXServiceURL url,
Subject subject)
Construct a new JMXConnectionHelper using the provided URL and Subject. |
|
| Method Summary | |
|---|---|
boolean |
close()
Close the underlying JMXConnector. |
boolean |
connect()
Try to connect to the remote MBeanServer. |
MBeanServerConnection |
getConnection()
|
Exception |
getLastException()
|
JMXServiceURL |
getURL()
|
void |
setSubject(Subject subject)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMXConnectionHelper(JMXServiceURL url,
Subject subject)
JMXConnectionHelper using the provided URL and Subject.
url - MBeanServer URLsubject - Security subject
public JMXConnectionHelper(JMXServiceURL url,
String username,
String password)
JMXConnectionHelper using the provided URL and credentials.
url - MBeanServer URLusername - User name to use when connectingpassword - Password to use when connecting| Method Detail |
|---|
public boolean connect()
MBeanServer.
public Exception getLastException()
public MBeanServerConnection getConnection()
throws IOException
MBeanServerConnection (authenticatd with subject if not null).
IOException - If connection failspublic boolean close()
JMXConnector.
public void setSubject(Subject subject)
subject - the subject to setpublic JMXServiceURL getURL()
JMXServiceURL connection URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||