com.sun.jdmk.comm
Class HttpConnectorClient

java.lang.Object
  extended by com.sun.jdmk.comm.GenericHttpConnectorClient
      extended by com.sun.jdmk.comm.HttpConnectorClient
All Implemented Interfaces:
ClientNotificationHandler, HeartBeatClientHandler, RemoteMBeanServer, NotificationRegistration, ProxyHandler, Serializable

Deprecated. The JMX Remote API should be used in preference to the legacy Java DMK connector classes. This class may be removed in a future version of Java DMK. See JdmkLegacyConnector.

public class HttpConnectorClient
extends GenericHttpConnectorClient

This class provides an implementation of the RemoteMBeanServer interface based on the HTTP/TCP protocol.

Querying a Java Dynamic Management agent with this connector implies that an instance of HttpConnectorServer is running on the remote Java Dynamic Management agent.

Note - Use the connect method to identify the Java Dynamic Management agent with which the connector must communicate.

It is possible to request the use of a specific proxy through the java properties http.proxyHost=host and http.proxyPort=port.

The authentication information required to configure the connector is provided by the ConnectorAddress parameter in the method connect.

By default, port 8081 is used to communicate with HTTP/TCP connector.

See Also:
RemoteMBeanServer, HttpConnectorServer, Serialized Form

Field Summary
 
Fields inherited from interface com.sun.jdmk.comm.ClientNotificationHandler
DISCARD_NEW, DISCARD_OLD, NO_CACHE_LIMIT, PULL_MODE, PUSH_MODE
 
Constructor Summary
HttpConnectorClient()
          Deprecated. Constructs an HttpConnectorClient.
HttpConnectorClient(InetAddress localhost)
          Deprecated. replaced by the method HttpConnectorClient(String localhost)
HttpConnectorClient(String localhost)
          Deprecated. Constructs an HttpConnectorClient.
 
Method Summary
 
Methods inherited from class com.sun.jdmk.comm.GenericHttpConnectorClient
addHeartBeatNotificationListener, addNotificationListener, clearCache, connect, createMBean, createMBean, createMBean, createMBean, disconnect, disconnect, getAttribute, getAttributes, getCacheSize, getClassForProxyMBean, getDefaultDomain, getHeartBeatPeriod, getHeartBeatRetries, getMBeanCount, getMBeanInfo, getMBeanServerAddress, getMBeanServerId, getMode, getNotifications, getObjectInstance, getOperationContext, getOverflowCount, getOverflowMode, getPeriod, invoke, isConnected, isInstanceOf, isRegistered, queryMBeans, queryNames, removeHeartBeatNotificationListener, removeNotificationListener, setAttribute, setAttributes, setCacheSize, setHeartBeatPeriod, setHeartBeatRetries, setMode, setOperationContext, setOverflowCount, setOverflowMode, setPeriod, supports, unregisterMBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpConnectorClient

public HttpConnectorClient()
Deprecated. 
Constructs an HttpConnectorClient.

Initializes this connector client with the default port (8081).


HttpConnectorClient

public HttpConnectorClient(InetAddress localhost)
Deprecated. replaced by the method HttpConnectorClient(String localhost)

Constructs an HttpConnectorClient.

Initializes this connector client with the default port (8081).

Parameters:
localhost - a user specified local host address to receive notifications from the server.

HttpConnectorClient

public HttpConnectorClient(String localhost)
Deprecated. 
Constructs an HttpConnectorClient.

Initializes this connector client with the default port (8081).

Parameters:
localhost - a local host address to receive notifications from the server.
Since:
Java DMK 5.0

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.