public interface RemoteNotificationServerHandler
RemoteNotificationClientHandler
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(java.lang.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
|
java.lang.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(java.lang.Integer id)
Removes the listener with the given ID from this handler
|
java.lang.Integer generateListenerID(javax.management.ObjectName name, javax.management.NotificationFilter filter)
javax.management.NotificationListener getServerNotificationListener()
void addNotificationListener(java.lang.Integer id, NotificationTuple tuple)
NotificationTuple removeNotificationListener(java.lang.Integer id)
javax.management.remote.NotificationResult fetchNotifications(long sequenceNumber, int maxNotifications, long timeout) throws java.io.IOException
java.io.IOException
- If this handler has already been closedNotificationTuple[] close()
fetchNotifications(long, int, long)