mx4j.tools.remote.http

Class HTTPServerInvoker

Implemented Interfaces:
HTTPConnection, JMXConnection

public class HTTPServerInvoker
extends AbstractServerInvoker
implements HTTPConnection

Implementation of the HTTPConnector interface that forwards the calls to an MBeanServerConnection object. It handles remote notifications, but it does not handle unmarshalling of arguments (and all related classloading problems).
Version:
$Revision: 1.3 $

Constructor Summary

HTTPServerInvoker(javax.management.MBeanServerConnection server, RemoteNotificationServerHandler handler)

Method Summary

Integer
addNotificationListener(javax.management.ObjectName name, Object filter, Subject delegate)
void
close()
String
connect(Object credentials)
This method is called when a call initiated by javax.management.remote.JMXConnector.connect arrives on server side.
javax.management.remote.NotificationResult
fetchNotifications(long clientSequenceNumber, int maxNotifications, long timeout)
void
removeNotificationListeners(javax.management.ObjectName name, Integer[] listenerIDs, Subject delegate)

Methods inherited from class mx4j.tools.remote.AbstractServerInvoker

addNotificationListener, createMBean, createMBean, getAttribute, getAttributes, getDefaultDomain, getDomains, getMBeanCount, getMBeanInfo, getObjectInstance, getServer, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean

Constructor Details

HTTPServerInvoker

public HTTPServerInvoker(javax.management.MBeanServerConnection server,
                         RemoteNotificationServerHandler handler)

Method Details

addNotificationListener

public Integer addNotificationListener(javax.management.ObjectName name,
                                       Object filter,
                                       Subject delegate)
            throws javax.management.InstanceNotFoundException,
                   IOException
Specified by:
addNotificationListener in interface HTTPConnection

close

public void close()
            throws IOException
Specified by:
close in interface JMXConnection

connect

public String connect(Object credentials)
            throws IOException,
                   SecurityException
Specified by:
connect in interface HTTPConnection
Parameters:
credentials - The credential for authentication
Returns:
The connection id for the newly created connection

fetchNotifications

public javax.management.remote.NotificationResult fetchNotifications(long clientSequenceNumber,
                                                                     int maxNotifications,
                                                                     long timeout)
            throws IOException
Specified by:
fetchNotifications in interface HTTPConnection

removeNotificationListeners

public void removeNotificationListeners(javax.management.ObjectName name,
                                        Integer[] listenerIDs,
                                        Subject delegate)
            throws javax.management.InstanceNotFoundException,
                   javax.management.ListenerNotFoundException,
                   IOException
Specified by:
removeNotificationListeners in interface HTTPConnection

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