Class PlatformIgnition


  • public class PlatformIgnition
    extends Object
    Entry point for platform nodes.
    • Method Detail

      • start

        public static void start​(@Nullable
                                 @Nullable String springCfgPath,
                                 @Nullable
                                 @Nullable String igniteInstanceName,
                                 int factoryId,
                                 long envPtr,
                                 long dataPtr)
        Start Ignite node in platform mode.
        Parameters:
        springCfgPath - Spring configuration path.
        igniteInstanceName - Ignite instance name.
        factoryId - Factory ID.
        envPtr - Environment pointer.
        dataPtr - Optional pointer to additional data required for startup.
      • instance

        @Nullable
        public static @Nullable PlatformProcessor instance​(@Nullable
                                                           @Nullable String igniteInstanceName)
        Get instance by environment pointer.
        Parameters:
        igniteInstanceName - Ignite instance name.
        Returns:
        Instance or null if it doesn't exist (never started or stopped).
      • environmentPointer

        public static long environmentPointer​(@Nullable
                                              @Nullable String igniteInstanceName)
        Get environment pointer of the given instance.
        Parameters:
        igniteInstanceName - Ignite instance name.
        Returns:
        Environment pointer or 0 in case grid with such name doesn't exist.
      • stop

        public static boolean stop​(@Nullable
                                   @Nullable String igniteInstanceName,
                                   boolean cancel)
        Stop single instance.
        Parameters:
        igniteInstanceName - Ignite instance name,
        cancel - Cancel flag.
        Returns:
        True if instance was found and stopped.
      • stopAll

        public static void stopAll​(boolean cancel)
        Stop all instances.
        Parameters:
        cancel - Cancel flag.