|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.remote.generic.GenericConnector
javax.management.remote.jmxmp.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)
Establishes the connection to the connector server. |
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
JMXConnectorEstablishes the connection to the connector server.
If connect has already been called successfully
on this object, calling it again has no effect. If, however,
JMXConnector.close() was called after connect, the new
connect will throw an IOException.
Otherwise, either connect has never been called
on this object, or it has been called but produced an
exception. Then calling connect will attempt to
establish a connection to the connector server.
connect in interface JMXConnectorconnect in class GenericConnectorIOExceptionpublic 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.
|
JMX Remote API Specification 1.0 Final Release Generated from RI build jmxremote-1_0_1_03-b57.2 2005.11.28_17:40:34_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||