public class StopNodeOrHaltFailureHandler extends AbstractFailureHandler
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 |
---|---|
protected boolean |
handle(Ignite ignite,
FailureContext failureCtx)
Actual failure handling.
|
long |
timeout()
Get stop node timeout.
|
String |
toString() |
boolean |
tryStop()
Get try stop.
|
getIgnoredFailureTypes, onFailure, setIgnoredFailureTypes, shutdownPolicyToHandleFailure
public StopNodeOrHaltFailureHandler()
public StopNodeOrHaltFailureHandler(boolean tryStop, long timeout)
tryStop
- Try stop.timeout
- Stop node timeout.protected boolean handle(Ignite ignite, FailureContext failureCtx)
handle
in class AbstractFailureHandler
AbstractFailureHandler.setIgnoredFailureTypes(Set).
,
FailureHandler.onFailure(Ignite, FailureContext).
public long timeout()
public boolean tryStop()
public String toString()
toString
in class AbstractFailureHandler
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024