public class JMXMPConnector extends GenericConnector implements Serializable
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.
MESSAGE_CONNECTION, OBJECT_WRAPPINGCREDENTIALS| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect(Map env) |
String |
toString()
Returns a string representation of this object.
|
addConnectionNotificationListener, close, connect, getConnectionId, getMBeanServerConnection, getMBeanServerConnection, removeConnectionNotificationListener, removeConnectionNotificationListener, sendNotificationpublic 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.public void connect(Map env) throws IOException
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.
Copyright © 2019 Terracotta, Inc.. All rights reserved.