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
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
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023