mx4j.remote

Interface RemoteNotificationClientHandler

public interface RemoteNotificationClientHandler

Handles remote notification fetching on client side. It takes care of calling the server side with the correct protocol and to dispatch notifications to client-side listeners.

Version: $Revision: 1.10 $

See Also: RemoteNotificationServerHandler

Method Summary
voidaddNotificationListener(Integer id, NotificationTuple tuple)
Adds the given tuple with the given listener ID to this handler
booleancontains(NotificationTuple tuple)
Returns whether the tuple is already present in this handler
IntegergetNotificationListener(NotificationTuple tuple)
Returns the ID of the listener for the given tuple
Integer[]getNotificationListeners(NotificationTuple tuple)
Returns the IDs of the listeners for the given tuple
voidremoveNotificationListeners(Integer[] ids)
Removes the listeners with the given IDs from this handler
voidstart()
Starts notification fetching
voidstop()
Stops notification fetching

Method Detail

addNotificationListener

public void addNotificationListener(Integer id, NotificationTuple tuple)
Adds the given tuple with the given listener ID to this handler

See Also: javax.management.MBeanServerConnection#addNotificationListener RemoteNotificationClientHandler

contains

public boolean contains(NotificationTuple tuple)
Returns whether the tuple is already present in this handler

getNotificationListener

public Integer getNotificationListener(NotificationTuple tuple)
Returns the ID of the listener for the given tuple

See Also: javax.management.MBeanServerConnection#removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) RemoteNotificationClientHandler

getNotificationListeners

public Integer[] getNotificationListeners(NotificationTuple tuple)
Returns the IDs of the listeners for the given tuple

See Also: javax.management.MBeanServerConnection#removeNotificationListener(javax.management.ObjectName, javax.management.NotificationListener) RemoteNotificationClientHandler

removeNotificationListeners

public void removeNotificationListeners(Integer[] ids)
Removes the listeners with the given IDs from this handler

See Also: RemoteNotificationClientHandler

start

public void start()
Starts notification fetching

See Also: RemoteNotificationClientHandler

stop

public void stop()
Stops notification fetching

See Also: RemoteNotificationClientHandler

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.