Class ActiveFailureDetector

java.lang.Object
java.lang.Thread
com.gigaspaces.internal.utils.concurrent.GSThread
com.gigaspaces.cluster.activeelection.core.ActiveFailureDetector
All Implemented Interfaces:
FaultDetectionListener, Runnable

public class ActiveFailureDetector extends GSThread implements FaultDetectionListener
Provides a failure detection on active service. On active failure elect the new active. On elect the ActiveFailureDetector terminates all functionality.
Since:
6.0
Version:
1.0
Author:
Igor Goldenberg
See Also:
  • Method Details

    • serviceFailure

      public void serviceFailure(Object service, Object serviceID)
      Description copied from interface: FaultDetectionListener
      Notify the FaultDetectionListener that the service has failed
      Specified by:
      serviceFailure in interface FaultDetectionListener
      Parameters:
      service - The service that has failed
      serviceID - An Object representing a unique service identifier of the service that has failed
      See Also:
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • isTerminate

      public boolean isTerminate()
      Returns:
      if failure detector should be terminated
    • terminate

      public void terminate()
      Terminate the ActiveFailureDetector.
    • toString

      public String toString()
      Overrides:
      toString in class Thread