Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
interface FailureHandler {
   FailureAction onFailure(FailureContext failureCtx);
}

class FailureContext {
   FailureType type;
   Throwable error;
}

enum FailureAction {
   RESTART_JVM, // Node must be started from ignite.(sh|bat) script. All nodes in the process will be restarted.
   TERMINATE_JVM, // All nodes in the process will be stopped.
   STOP_NODE, // This particular node will be stopped.
   NO_OP; // Nothing to do. WARNING: Node behavior will be undefined. Especially in case of system worker termination.
}

enum FailureType {
   SEGMENTATION,
   SYSTEM_WORKER_TERMINATION,
   CRITICAL_ERROR
}

...