mx4j.remote
public abstract class AbstractRemoteNotificationClientHandler extends Object implements RemoteNotificationClientHandler
Version: $Revision: 1.7 $
Constructor Summary | |
---|---|
protected | AbstractRemoteNotificationClientHandler(ConnectionNotificationEmitter emitter, HeartBeat heartbeat, Map environment)
Creates a new remote notification client-side handler.
|
Method Summary | |
---|---|
void | addNotificationListener(Integer id, NotificationTuple tuple) |
boolean | contains(NotificationTuple tuple) |
protected abstract NotificationResult | fetchNotifications(long sequence, int maxNumber, long timeout)
Calls the server side to fetch notifications. |
protected Logger | getLogger() |
protected int | getMaxRetries()
Returns the maximum number of attempts that should be made before declaring a connection
failed.
|
Integer | getNotificationListener(NotificationTuple tuple) |
Integer[] | getNotificationListeners(NotificationTuple tuple) |
protected int | getNotificationsCount() |
protected long | getRetryPeriod()
Returns the period between two retries if the connection with the server side fails.
|
boolean | isActive()
Returns whether this client handler is fetching notifications or not.
|
void | removeNotificationListeners(Integer[] ids) |
protected void | sendConnectionNotificationLost(long number)
Sends the javax.management.remote.JMXConnectionNotification#NOTIFS_LOST notification
using the emitter passed to |
void | start() |
void | stop() |
Parameters: emitter The NotificationEmitter that emits connection failures notifications heartbeat The heart beat is used to get the retry parameters in case of connection failure environment Contains environment variables used to configure this handler
See Also: FETCH_NOTIFICATIONS_MAX_NUMBER FETCH_NOTIFICATIONS_SLEEP FETCH_NOTIFICATIONS_TIMEOUT AbstractRemoteNotificationClientHandler AbstractRemoteNotificationClientHandler AbstractRemoteNotificationClientHandler
See Also: AbstractRemoteNotificationClientHandler AbstractRemoteNotificationClientHandler
See Also: AbstractRemoteNotificationClientHandler AbstractRemoteNotificationClientHandler
See Also: AbstractRemoteNotificationClientHandler AbstractRemoteNotificationClientHandler