mx4j.tools.remote.http

Class HTTPConnector

Implemented Interfaces:
javax.management.remote.JMXConnector, Serializable
Known Direct Subclasses:
SOAPConnector

public class HTTPConnector
extends AbstractJMXConnector

Version:
$

Fields inherited from interface javax.management.remote.JMXConnector

CREDENTIALS

Constructor Summary

HTTPConnector(javax.management.remote.JMXServiceURL address, Map environment)

Method Summary

protected HeartBeat
createHeartBeat(HTTPConnection connection, ConnectionNotificationEmitter emitter, Map environment)
protected RemoteNotificationClientHandler
createRemoteNotificationClientHandler(HTTPConnection connection, ConnectionNotificationEmitter emitter, HeartBeat heartbeat, Map environment)
protected void
doClose()
Template method to be implemented by subclasses to close this JMXConnector
protected void
doConnect(Map environment)
protected javax.management.MBeanServerConnection
doGetMBeanServerConnection(Subject delegate)
Template method to be implemented by subclasses to return an MBeanServerConnection for the given delegate subject.
String
getConnectionId()
protected HTTPConnection
getHTTPConnection()
RemoteNotificationClientHandler
getRemoteNotificationClientHandler()

Methods inherited from class mx4j.tools.remote.AbstractJMXConnector

addConnectionNotificationListener, close, connect, connect, createConnectionNotificationEmitter, doClose, doConnect, doGetMBeanServerConnection, getAddress, getConnectionNotificationEmitter, getMBeanServerConnection, getMBeanServerConnection, isClosed, isConnected, removeConnectionNotificationListener, removeConnectionNotificationListener, sendConnectionNotificationClosed

Constructor Details

HTTPConnector

public HTTPConnector(javax.management.remote.JMXServiceURL address,
                     Map environment)
            throws IOException

Method Details

createHeartBeat

protected HeartBeat createHeartBeat(HTTPConnection connection,
                                    ConnectionNotificationEmitter emitter,
                                    Map environment)

createRemoteNotificationClientHandler

protected RemoteNotificationClientHandler createRemoteNotificationClientHandler(HTTPConnection connection,
                                                                                ConnectionNotificationEmitter emitter,
                                                                                HeartBeat heartbeat,
                                                                                Map environment)

doClose

protected void doClose()
            throws IOException
Template method to be implemented by subclasses to close this JMXConnector
Overrides:
doClose in interface AbstractJMXConnector

doConnect

protected void doConnect(Map environment)
            throws IOException,
                   SecurityException
Overrides:
doConnect in interface AbstractJMXConnector

doGetMBeanServerConnection

protected javax.management.MBeanServerConnection doGetMBeanServerConnection(Subject delegate)
            throws IOException
Template method to be implemented by subclasses to return an MBeanServerConnection for the given delegate subject. This method should return an MBeanServerConnection that delegates method calls to a JMXConnection (or an equivalent client side connection object). The JMXConnection object to which calls are delegated can in turn be a chain of objects that decorate the call performing some other operation; the final object in the chain is the one that really communicates with the server side, and it is normally called ClientInvoker.
Overrides:
doGetMBeanServerConnection in interface AbstractJMXConnector

getConnectionId

public String getConnectionId()
            throws IOException
Specified by:
getConnectionId in interface javax.management.remote.JMXConnector

getHTTPConnection

protected HTTPConnection getHTTPConnection()

getRemoteNotificationClientHandler

public RemoteNotificationClientHandler getRemoteNotificationClientHandler()

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.