Class StopNodeOrHaltFailureHandler

  • All Implemented Interfaces:
    FailureHandler

    public class StopNodeOrHaltFailureHandler
    extends AbstractFailureHandler
    Handler will try to stop node if 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 Detail

      • StopNodeOrHaltFailureHandler

        public StopNodeOrHaltFailureHandler()
        Default constructor.
      • StopNodeOrHaltFailureHandler

        public StopNodeOrHaltFailureHandler​(boolean tryStop,
                                            long timeout)
        Parameters:
        tryStop - Try stop.
        timeout - Stop node timeout.
    • Method Detail

      • timeout

        public long timeout()
        Get stop node timeout.
        Returns:
        Stop node timeout.
      • tryStop

        public boolean tryStop()
        Get try stop.
        Returns:
        Try stop.