|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HeartBeatClientHandler
Interface to be implemented by all the connector clients that want to support the heartbeat mechanism.
This interface provides methods for configuring the heartbeat functionality from a manager.
Method Summary | |
---|---|
void |
addHeartBeatNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
Adds the specified heartbeat listener to receive heartbeat notifications from this connector client. |
int |
getHeartBeatPeriod()
Gets the heartbeat period in milliseconds. |
int |
getHeartBeatRetries()
Gets the number of retries. |
void |
removeHeartBeatNotificationListener(NotificationListener listener)
Removes the specified heartbeat listener so that it no longer receives heartbeat notifications from this connector client. |
void |
setHeartBeatPeriod(int period)
Specifies the heartbeat period in milliseconds. |
void |
setHeartBeatRetries(int nretries)
Sets the number of retries. |
Method Detail |
---|
int getHeartBeatPeriod()
void setHeartBeatPeriod(int period)
If set to zero no check will be carried out for the associated connector server being alive. As the heartbeat is driven by the manager this would also prevent the connector server from being aware of the aliveness of this connector client.
period
- The heartbeat period in milliseconds.int getHeartBeatRetries()
void setHeartBeatRetries(int nretries)
nretries
- The number of retries.void addHeartBeatNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
listener
- The heartbeat listener which will handle the notifications emitted by the connector client.filter
- The filter object. If filter is null, no filtering will be performed before handling notifications.handback
- The context to be sent to the listener when a notification is emitted.void removeHeartBeatNotificationListener(NotificationListener listener)
listener
- The heartbeat listener which will handle the notifications emitted by the connector client.
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |