mx4j.tools.remote.http
Class HTTPServerInvoker
- HTTPConnection, JMXConnection
public class HTTPServerInvoker
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).
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)
|
addNotificationListener , createMBean , createMBean , getAttribute , getAttributes , getDefaultDomain , getDomains , getMBeanCount , getMBeanInfo , getObjectInstance , getServer , invoke , isInstanceOf , isRegistered , queryMBeans , queryNames , removeNotificationListener , removeNotificationListener , setAttribute , setAttributes , unregisterMBean |
addNotificationListener
public Integer addNotificationListener(javax.management.ObjectName name,
Object filter,
Subject delegate)
throws javax.management.InstanceNotFoundException,
IOException
- addNotificationListener in interface HTTPConnection
connect
public String connect(Object credentials)
throws IOException,
SecurityException
This method is called when a call initiated by
javax.management.remote.JMXConnector.connect
arrives on server side. For HTTP connections, the socket is handled by the web container, but
the remote procedure call that arrives along with the HTTP request is parsed and then (normally)
forwarded to a JavaBean (that will implement this interface).
Implementations of this method will normally call
ConnectionManager.connect(Object)
.
- connect in interface HTTPConnection
credentials
- The credential for authentication
- The connection id for the newly created connection
fetchNotifications
public javax.management.remote.NotificationResult fetchNotifications(long clientSequenceNumber,
int maxNotifications,
long timeout)
throws IOException
- fetchNotifications in interface HTTPConnection
removeNotificationListeners
public void removeNotificationListeners(javax.management.ObjectName name,
Integer[] listenerIDs,
Subject delegate)
throws javax.management.InstanceNotFoundException,
javax.management.ListenerNotFoundException,
IOException
- removeNotificationListeners in interface HTTPConnection
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.