|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MonitorableService
A MonitorableService provides the semantics to determine if a service (which implements this interface) is reachable. One of two mechanisms can be used:
| Method Summary | |
|---|---|
Lease |
monitor(long duration)
Establish a Lease to monitor the reachability of the Service |
void |
ping()
Low cost roundtrip check |
void |
startHeartbeat(String[] configArgs)
Start a heartbeat mechanism to determine the reachability of the Service. |
| Method Detail |
|---|
void ping()
throws RemoteException
RemoteException - If an error occured during communication with the
service
Lease monitor(long duration)
throws LeaseDeniedException,
RemoteException
duration - The duration (in milliseconds) of the requested Lease
LeaseDeniedException - If requested Lease is denied
RemoteException - If communication errors occur
void startHeartbeat(String[] configArgs)
throws ConfigurationException,
RemoteException
org.rioproject.fdh.HeartbeatFaultDetectionHandler.heartbeatServer
configArgs - Configuration attributes the Service will use to
establish a heartbeat mechanism
ConfigurationException - If there are errors processing the
configuration
RemoteException - If communication errors occur
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||