|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FaultDetectionHandler<T>
The FaultDetectionHandler is loaded by client entities do determine whether a service is reachable. Developers may choose to implement custom fault detection algorithms and protocols to determine service reachability and use those approaches in concrete implementations of this interface
| Method Summary | |
|---|---|
void |
monitor(Object service,
T serviceID,
LookupCache lCache)
Begin monitoring the service |
void |
register(FaultDetectionListener<T> listener)
Register a FaultDetectionListener |
void |
setConfiguration(String[] configArgs)
Set configuration attributes for the FaultDetectionHandler. |
void |
terminate()
Terminate the FaultDetectionHandler |
void |
unregister(FaultDetectionListener<T> listener)
Unregister a FaultDetectionListener |
| Method Detail |
|---|
void setConfiguration(String[] configArgs)
configArgs - Configuration attributes a FaultDetectionHandler will
use to monitor the service. Values are specific to a concrete instance of
the FaultDetectionHandlervoid register(FaultDetectionListener<T> listener)
listener - The FaultDetectionListener to registervoid unregister(FaultDetectionListener<T> listener)
listener - The FaultDetectionListener to unregister
void monitor(Object service,
T serviceID,
LookupCache lCache)
throws Exception
service - The service that the FaultDetectionHandler will monitorserviceID - An Object representing a unique service identifier for
the service being monitored.lCache - A LookupCache instance to be used to be notified of service
transition events from a Jini Lookup Service
Exception - If there are abnormal conditions encounteredvoid terminate()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||