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 Type
    Method
    Description
    void
    monitor(Object service, ServiceID serviceID)
    Begin monitoring the service
    void
    Register a FaultDetectionListener
    void
    setConfiguration(String[] configArgs)
    Set configuration attributes for the FaultDetectionHandler.
    void
    Terminate the FaultDetectionHandler
  • Method Details

    • setConfiguration

      void setConfiguration(String[] configArgs)
      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

      void register(FaultDetectionListener listener)
      Register a FaultDetectionListener
      Parameters:
      listener - The FaultDetectionListener to register
    • monitor

      void monitor(Object service, ServiceID serviceID) throws Exception
      Begin monitoring the service
      Parameters:
      service - The service that the FaultDetectionHandler will monitor, must not be null
      serviceID - An Object representing a unique service identifier for the service being monitored, must not be null
      Throws:
      Exception - If there are abnormal conditions encountered
      NullPointerException - if required parameters are null
    • terminate

      void terminate()
      Terminate the FaultDetectionHandler