|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.remote.generic.GenericConnector javax.management.remote.jmxmp.JMXMPConnector
public class JMXMPConnector
The client end of a JMXMP Connector. An object of this
type can be used to establish a connection to a connector server.
Rather than instantiate this class directly, it is recommended to
use the JMXConnectorFactory
with a JMXServiceURL
that has protocol type jmxmp
.
Field Summary |
---|
Fields inherited from class javax.management.remote.generic.GenericConnector |
---|
MESSAGE_CONNECTION, OBJECT_WRAPPING |
Fields inherited from interface javax.management.remote.JMXConnector |
---|
CREDENTIALS |
Constructor Summary | |
---|---|
JMXMPConnector(JMXServiceURL address)
Constructs a JMXMP Connector client that can make a connection to the connector server at the given address. |
|
JMXMPConnector(JMXServiceURL address,
Map env)
Constructs a JMXMP Connector client that can make a connection to the connector server at the given address. |
Method Summary | |
---|---|
void |
connect(Map env)
|
String |
toString()
Returns a string representation of this object. |
Methods inherited from class javax.management.remote.generic.GenericConnector |
---|
addConnectionNotificationListener, close, connect, getConnectionId, getMBeanServerConnection, getMBeanServerConnection, removeConnectionNotificationListener, removeConnectionNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JMXMPConnector(JMXServiceURL address) throws IOException
Constructs a JMXMP Connector client that can make a
connection to the connector server at the given address. This
constructor is equivalent to JMXMPConnector(address, null)
.
address
- the address of the connector server to
connect to.
IllegalArgumentException
- if address
is null.
MalformedURLException
- if address
is not
a valid URL for the JMXMP connector.
IOException
- if the connector cannot work for another reason.public JMXMPConnector(JMXServiceURL address, Map env) throws IOException
Constructs a JMXMP Connector client that can make a connection to the connector server at the given address.
address
- the address of the connector server to
connect to.env
- the environment parameters controlling the
connection. This parameter can be null, which is equivalent to
an empty map. The provided Map will not be
modified.
IllegalArgumentException
- if address
is null.
MalformedURLException
- if address
is not
a valid URL for the JMXMP connector.
IOException
- if the connector cannot work for another reason.Method Detail |
---|
public void connect(Map env) throws IOException
connect
in interface JMXConnector
connect
in class GenericConnector
IOException
public String toString()
Returns a string representation of this object. In general,
the toString
method returns a string that
"textually represents" this object. The result should be a
concise but informative representation that is easy for a
person to read.
toString
in class Object
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |