NotificationAccessControllerpublic interface NotificationAccessController This interface allows to control remote access to the
{@code addNotificationListener} and {@code removeNotificationListener}
methods when the notification listener parameter is of type
{@code NotificationListener} and also allows to control remote access
to the notifications being forwarded to the interested remote listeners.
An implementation of this interface can be supplied to a
{@code JMXConnectorServer} in the environment map through the
{@code com.sun.jmx.remote.notification.access.controller}
environment map property. |
Methods Summary |
---|
public void | addNotificationListener(java.lang.String connectionId, javax.management.ObjectName name, javax.security.auth.Subject subject)This method is called when a remote
{@link javax.management.remote.JMXConnector} invokes the method
{@link javax.management.MBeanServerConnection#addNotificationListener(ObjectName,NotificationListener,NotificationFilter,Object)}.
| public void | fetchNotification(java.lang.String connectionId, javax.management.ObjectName name, javax.management.Notification notification, javax.security.auth.Subject subject)This method is called before the
{@link javax.management.remote.JMXConnectorServer}
forwards the notification to the interested remote
listener represented by the authenticated subject.
| public void | removeNotificationListener(java.lang.String connectionId, javax.management.ObjectName name, javax.security.auth.Subject subject)This method is called when a remote
{@link javax.management.remote.JMXConnector} invokes the method
{@link javax.management.MBeanServerConnection#removeNotificationListener(ObjectName,NotificationListener)}
or the method
{@link javax.management.MBeanServerConnection#removeNotificationListener(ObjectName,NotificationListener,NotificationFilter,Object)}.
|
|