|
||||||||||
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
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(javax.management.remote.JMXServiceURL address)
Constructs a JMXMP Connector client that can make a connection to the connector server at the given address. |
|
JMXMPConnector(javax.management.remote.JMXServiceURL address,
java.util.Map env)
Constructs a JMXMP Connector client that can make a connection to the connector server at the given address. |
Method Summary | |
---|---|
void |
connect(java.util.Map env)
|
java.lang.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(javax.management.remote.JMXServiceURL address) throws java.io.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.
java.lang.IllegalArgumentException
- if address
is null.
java.net.MalformedURLException
- if address
is not
a valid URL for the JMXMP connector.
java.io.IOException
- if the connector cannot work for another reason.public JMXMPConnector(javax.management.remote.JMXServiceURL address, java.util.Map env) throws java.io.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.
java.lang.IllegalArgumentException
- if address
is null.
java.net.MalformedURLException
- if address
is not
a valid URL for the JMXMP connector.
java.io.IOException
- if the connector cannot work for another reason.Method Detail |
---|
public void connect(java.util.Map env) throws java.io.IOException
connect
in interface javax.management.remote.JMXConnector
connect
in class GenericConnector
java.io.IOException
public java.lang.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 java.lang.Object
|
Open Source build 01-ea opendmk-1.0-b01-ea 2010.10.20_19:39:55_UTC |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |