public class HTTPServerInvoker extends AbstractServerInvoker implements HTTPConnection
Constructor and Description |
---|
HTTPServerInvoker(javax.management.MBeanServerConnection server,
RemoteNotificationServerHandler handler) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
addNotificationListener(javax.management.ObjectName name,
java.lang.Object filter,
javax.security.auth.Subject delegate) |
void |
close() |
java.lang.String |
connect(java.lang.Object credentials)
This method is called when a call initiated by
JMXConnector.connect()
arrives on server side. |
javax.management.remote.NotificationResult |
fetchNotifications(long clientSequenceNumber,
int maxNotifications,
long timeout) |
void |
removeNotificationListeners(javax.management.ObjectName name,
java.lang.Integer[] listenerIDs,
javax.security.auth.Subject delegate) |
addNotificationListener, createMBean, createMBean, getAttribute, getAttributes, getDefaultDomain, getDomains, getMBeanCount, getMBeanInfo, getObjectInstance, getServer, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addNotificationListener, createMBean, createMBean, getAttribute, getAttributes, getDefaultDomain, getDomains, getMBeanCount, getMBeanInfo, getObjectInstance, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean
public HTTPServerInvoker(javax.management.MBeanServerConnection server, RemoteNotificationServerHandler handler)
public java.lang.String connect(java.lang.Object credentials) throws java.io.IOException, java.lang.SecurityException
HTTPConnection
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(java.lang.Object)
.connect
in interface HTTPConnection
credentials
- The credential for authenticationjava.io.IOException
- If a communication problem occursjava.lang.SecurityException
- If the authentication failspublic void close() throws java.io.IOException
close
in interface JMXConnection
java.io.IOException
public java.lang.Integer addNotificationListener(javax.management.ObjectName name, java.lang.Object filter, javax.security.auth.Subject delegate) throws javax.management.InstanceNotFoundException, java.io.IOException
addNotificationListener
in interface HTTPConnection
javax.management.InstanceNotFoundException
java.io.IOException
public void removeNotificationListeners(javax.management.ObjectName name, java.lang.Integer[] listenerIDs, javax.security.auth.Subject delegate) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException, java.io.IOException
removeNotificationListeners
in interface HTTPConnection
javax.management.InstanceNotFoundException
javax.management.ListenerNotFoundException
java.io.IOException
public javax.management.remote.NotificationResult fetchNotifications(long clientSequenceNumber, int maxNotifications, long timeout) throws java.io.IOException
fetchNotifications
in interface HTTPConnection
java.io.IOException