public class StopNodeOrHaltFailureHandler extends Object implements FailureHandler
tryStop value is true.
If node can't be stopped during provided timeout or tryStop value is false
then JVM process will be terminated forcibly using Runtime.getRuntime().halt().| Constructor and Description |
|---|
StopNodeOrHaltFailureHandler()
Default constructor.
|
StopNodeOrHaltFailureHandler(boolean tryStop,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onFailure(Ignite ignite,
FailureContext failureCtx)
Handles failure occurred on
ignite instance. |
String |
toString() |
public StopNodeOrHaltFailureHandler()
public StopNodeOrHaltFailureHandler(boolean tryStop,
long timeout)
tryStop - Try stop.timeout - Stop node timeout.public boolean onFailure(Ignite ignite, FailureContext failureCtx)
ignite instance.
Failure details is contained in failureCtx.
Returns true if kernal context must be invalidated by FailureProcessor after calling this method.onFailure in interface FailureHandlerignite - Ignite instance.failureCtx - Failure context.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018