Package org.apache.ignite.failure
Class StopNodeOrHaltFailureHandler
- java.lang.Object
- 
- org.apache.ignite.failure.AbstractFailureHandler
- 
- org.apache.ignite.failure.StopNodeOrHaltFailureHandler
 
 
- 
- All Implemented Interfaces:
- FailureHandler
 
 public class StopNodeOrHaltFailureHandler extends AbstractFailureHandler Handler will try to stop node iftryStopvalue istrue. If node can't be stopped during providedtimeoutortryStopvalue isfalsethen JVM process will be terminated forcibly usingRuntime.getRuntime().halt().
- 
- 
Constructor SummaryConstructors Constructor Description StopNodeOrHaltFailureHandler()Default constructor.StopNodeOrHaltFailureHandler(boolean tryStop, long timeout)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanhandle(Ignite ignite, FailureContext failureCtx)Actual failure handling.longtimeout()Get stop node timeout.StringtoString()booleantryStop()Get try stop.- 
Methods inherited from class org.apache.ignite.failure.AbstractFailureHandlergetIgnoredFailureTypes, onFailure, setIgnoredFailureTypes
 
- 
 
- 
- 
- 
Method Detail- 
handleprotected boolean handle(Ignite ignite, FailureContext failureCtx) Actual failure handling. This method is not called for ignored failure types.- Specified by:
- handlein class- AbstractFailureHandler
 
 - 
timeoutpublic long timeout() Get stop node timeout.- Returns:
- Stop node timeout.
 
 - 
tryStoppublic boolean tryStop() Get try stop.- Returns:
- Try stop.
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AbstractFailureHandler
 
 
- 
 
-