Interface FaultDetectionHandler
- All Known Implementing Classes:
AbstractFaultDetectionHandler,GigaSpacesFaultDetectionHandler
public interface FaultDetectionHandler
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
Modifier and TypeMethodDescriptionvoidBegin monitoring the servicevoidregister(FaultDetectionListener listener) Register a FaultDetectionListenervoidsetConfiguration(String[] configArgs) Set configuration attributes for the FaultDetectionHandler.voidTerminate the FaultDetectionHandler
-
Method Details
-
setConfiguration
Set configuration attributes for the FaultDetectionHandler.- Parameters:
configArgs- Configuration attributes a FaultDetectionHandler will use to monitor the service. Values are specific to a concrete instance of the FaultDetectionHandler
-
register
Register a FaultDetectionListener- Parameters:
listener- The FaultDetectionListener to register
-
monitor
Begin monitoring the service- Parameters:
service- The service that the FaultDetectionHandler will monitor, must not benullserviceID- An Object representing a unique service identifier for the service being monitored, must not benull- Throws:
Exception- If there are abnormal conditions encounteredNullPointerException- if required parameters arenull
-
terminate
void terminate()Terminate the FaultDetectionHandler
-