javax.management.remote.jmxmp
Class JMXMPConnector

java.lang.Object
  extended by javax.management.remote.generic.GenericConnector
      extended by javax.management.remote.jmxmp.JMXMPConnector
All Implemented Interfaces:
Serializable, JMXConnector

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.

See Also:
Serialized Form

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

JMXMPConnector

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).

Parameters:
address - the address of the connector server to connect to.
Throws:
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.

JMXMPConnector

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.

Parameters:
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.
Throws:
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

connect

public void connect(Map env)
             throws IOException
Specified by:
connect in interface JMXConnector
Overrides:
connect in class GenericConnector
Throws:
IOException

toString

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.

Overrides:
toString in class Object
Returns:
a String representation of this object.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.