public class HTTPConnectionMBeanServerConnection extends JMXConnectionMBeanServerConnection
Constructor and Description |
---|
HTTPConnectionMBeanServerConnection(JMXConnection connection,
javax.security.auth.Subject delegate,
RemoteNotificationClientHandler notificationHandler) |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(javax.management.ObjectName observed,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Adds a NotificationListener to a registered MBean.
|
void |
removeNotificationListener(javax.management.ObjectName observed,
javax.management.NotificationListener listener)
Removes the specified listener from the named source MBean.
|
void |
removeNotificationListener(javax.management.ObjectName observed,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Removes the specified listener from the named source MBean.
|
addNotificationListener, createMBean, createMBean, createMBean, createMBean, getAttribute, getAttributes, getConnection, getDefaultDomain, getDelegateSubject, getDomains, getMBeanCount, getMBeanInfo, getObjectInstance, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean
public HTTPConnectionMBeanServerConnection(JMXConnection connection, javax.security.auth.Subject delegate, RemoteNotificationClientHandler notificationHandler)
public void addNotificationListener(javax.management.ObjectName observed, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.InstanceNotFoundException, java.io.IOException
javax.management.MBeanServerConnection
observed
- The ObjectName of the source MBean on which the listener should be added.listener
- The listener which will handle the notifications emitted by the source MBean.filter
- The filter which will allow the notification to be forwarded to the listener.handback
- The context to be sent to the listener when a notification is emitted.javax.management.InstanceNotFoundException
- If the source MBean is not registered in the MBeanServer.java.io.IOException
- If a communication problem occurred.MBeanServerConnection.removeNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object)
public void removeNotificationListener(javax.management.ObjectName observed, javax.management.NotificationListener listener) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException, java.io.IOException
javax.management.MBeanServerConnection
observed
- The ObjectName of the source MBean on which the listener should be removed.listener
- The listener to be removed.javax.management.InstanceNotFoundException
- If the source MBean is not registered in the MBeanServer.javax.management.ListenerNotFoundException
- If the listener is not registered in the MBean.java.io.IOException
- If a communication problem occurred.MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object)
public void removeNotificationListener(javax.management.ObjectName observed, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.InstanceNotFoundException, javax.management.ListenerNotFoundException, java.io.IOException
javax.management.MBeanServerConnection
observed
- The ObjectName of the source MBean on which the listener should be removed.listener
- The listener to be removed.filter
- The filter that was specified when the listener was added.handback
- The handback that was specified when the listener was added.javax.management.InstanceNotFoundException
- If the source MBean is not registered in the MBeanServer.javax.management.ListenerNotFoundException
- If the listener (along with filter and handback) is not registered in the MBean.java.io.IOException
- If a communication problem occurred.MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object)