/** * Restarts <b>all</b> started grids. If {@code cancel} flag is set to {@code true} then * all jobs currently executing on the local node will be interrupted. * If {@code wait} parameter is set to {@code true} then grid will wait for all * tasks to be finished. * <p> * <b>Note:</b> it is usually safer and more appropriate to stop grid instances individually * instead of blanket operation. In most cases, the party that started the grid instance * should be responsible for stopping it. * <p> * Note also that restarting functionality only works with the tools that specifically * support Ignite's protocol for restarting. Currently only standard <tt>ignite.{sh|bat}</tt> * scripts support restarting of JVM Ignite's process. * * @param cancel If {@code true} then all jobs currently executing on * all grids will be cancelled by calling {@link org.apache.ignite.compute.ComputeJob#cancel()} * method. Note that just like with {@link Thread#interrupt()}, it is * up to the actual job to exit from execution. * @see #RESTART_EXIT_CODE */ public static void restart(boolean cancel) { IgnitionEx.restart(cancel); }
/** * Restarts <b>all</b> started grids. If {@code cancel} flag is set to {@code true} then * all jobs currently executing on the local node will be interrupted. * If {@code wait} parameter is set to {@code true} then grid will wait for all * tasks to be finished. * <p> * <b>Note:</b> it is usually safer and more appropriate to stop grid instances individually * instead of blanket operation. In most cases, the party that started the grid instance * should be responsible for stopping it. * <p> * Note also that restarting functionality only works with the tools that specifically * support Ignite's protocol for restarting. Currently only standard <tt>ignite.{sh|bat}</tt> * scripts support restarting of JVM Ignite's process. * * @param cancel If {@code true} then all jobs currently executing on * all grids will be cancelled by calling {@link org.apache.ignite.compute.ComputeJob#cancel()} * method. Note that just like with {@link Thread#interrupt()}, it is * up to the actual job to exit from execution. * @see #RESTART_EXIT_CODE */ public static void restart(boolean cancel) { IgnitionEx.restart(cancel); }