mx4j.remote
Interface RemoteNotificationServerHandler
- DefaultRemoteNotificationServerHandler
public interface RemoteNotificationServerHandler
Handles remote notification sending on server side.
It takes care of collecting requests for listener addition and removal, and to send
notifications back to the client side.
void | addNotificationListener(Integer id, NotificationTuple tuple) - Adds the given tuple with the given listener ID to this handler
|
NotificationTuple[] | close() - Closes this handler, that will not accept anymore add or removal of listeners
|
javax.management.remote.NotificationResult | fetchNotifications(long sequenceNumber, int maxNotifications, long timeout) - Fetches notifications from the notification buffer in order to send them
to the client side
|
Integer | generateListenerID(javax.management.ObjectName name, javax.management.NotificationFilter filter) - Returns a unique ID for a client-side NotificationListener
|
javax.management.NotificationListener | getServerNotificationListener() - Returns the unique server side listener that will represent client-side listeners
on MBeans.
|
NotificationTuple | removeNotificationListener(Integer id) - Removes the listener with the given ID from this handler
|
addNotificationListener
public void addNotificationListener(Integer id,
NotificationTuple tuple)
Adds the given tuple with the given listener ID to this handler
close
public NotificationTuple[] close()
Closes this handler, that will not accept anymore add or removal of listeners
- The NotificationTuples currently held
fetchNotifications
public javax.management.remote.NotificationResult fetchNotifications(long sequenceNumber,
int maxNotifications,
long timeout)
throws IOException
Fetches notifications from the notification buffer in order to send them
to the client side
generateListenerID
public Integer generateListenerID(javax.management.ObjectName name,
javax.management.NotificationFilter filter)
Returns a unique ID for a client-side NotificationListener
getServerNotificationListener
public javax.management.NotificationListener getServerNotificationListener()
Returns the unique server side listener that will represent client-side listeners
on MBeans.
removeNotificationListener
public NotificationTuple removeNotificationListener(Integer id)
Removes the listener with the given ID from this handler
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.