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
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidrun()voidserviceFailure(Object service, Object serviceID) Notify the FaultDetectionListener that the service has failedvoidTerminate the ActiveFailureDetector.toString()Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, yield
-
Method Details
-
serviceFailure
Description copied from interface:FaultDetectionListenerNotify the FaultDetectionListener that the service has failed- Specified by:
serviceFailurein interfaceFaultDetectionListener- Parameters:
service- The service that has failedserviceID- An Object representing a unique service identifier of the service that has failed- See Also:
-
run
public void run() -
isTerminate
public boolean isTerminate()- Returns:
- if failure detector should be terminated
-
terminate
public void terminate()Terminate the ActiveFailureDetector. -
toString
-