|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public int getHeartBeatPeriod()
public 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.public int getHeartBeatRetries()
public void setHeartBeatRetries(int nretries)
nretries
- The number of retries.public 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.public void removeHeartBeatNotificationListener(NotificationListener listener)
listener
- The heartbeat listener which will handle the notifications emitted by the connector client.
|
FCS Release jdmk-5_1-b34.2 2005.11.29_16:24:00_MET |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |