Class IgnitionMXBeanAdapter

    • Constructor Detail

      • IgnitionMXBeanAdapter

        public IgnitionMXBeanAdapter()
    • Method Detail

      • stop

        public boolean stop​(boolean cancel)
        Stops default grid instance.
        Specified by:
        stop in interface IgnitionMXBean
        Parameters:
        cancel - If true then all jobs currently executing on default grid will be cancelled by calling ComputeJob.cancel() method. Note that just like with Thread.interrupt(), it is up to the actual job to exit from execution.
        Returns:
        true if default grid instance was indeed stopped, false otherwise (if it was not started).
        See Also:
        Ignition.stop(boolean)
      • stop

        public boolean stop​(String name,
                            boolean cancel)
        Stops named Ignite instance. If cancel flag is set to true then all jobs currently executing on local node will be interrupted. If Ignite instance name is null, then default no-name Ignite instance will be stopped. It does not wait for the tasks to finish their execution.
        Specified by:
        stop in interface IgnitionMXBean
        Parameters:
        name - Ignite instance name. If null, then default no-name Ignite instance will be stopped.
        cancel - If true then all jobs currently will be cancelled by calling ComputeJob.cancel() method. Note that just like with Thread.interrupt(), it is up to the actual job to exit from execution. If false, then jobs currently running will not be canceled. In either case, grid node will wait for completion of all jobs running on it before stopping.
        Returns:
        true if named Ignite instance instance was indeed found and stopped, false otherwise (the instance with given name was not found).
        See Also:
        Ignition.stop(String, boolean)
      • stopAll

        public void stopAll​(boolean cancel)
        Stops all started grids. If cancel flag is set to true then all jobs currently executing on local node will be interrupted. It does not wait for the tasks to finish their execution.

        Note: 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.

        Specified by:
        stopAll in interface IgnitionMXBean
        Parameters:
        cancel - If true then all jobs currently executing on all grids will be cancelled by calling ComputeJob.cancel() method. Note that just like with Thread.interrupt(), it is up to the actual job to exit from execution
        See Also:
        Ignition.stopAll(boolean)