Class PlatformIgnition
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.PlatformIgnition
-
public class PlatformIgnition extends Object
Entry point for platform nodes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longenvironmentPointer(@Nullable String igniteInstanceName)Get environment pointer of the given instance.static @Nullable PlatformProcessorinstance(@Nullable String igniteInstanceName)Get instance by environment pointer.static voidstart(@Nullable String springCfgPath, @Nullable String igniteInstanceName, int factoryId, long envPtr, long dataPtr)Start Ignite node in platform mode.static booleanstop(@Nullable String igniteInstanceName, boolean cancel)Stop single instance.static voidstopAll(boolean cancel)Stop all instances.
-
-
-
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
nullif 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
0in 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:
Trueif instance was found and stopped.
-
stopAll
public static void stopAll(boolean cancel)
Stop all instances.- Parameters:
cancel- Cancel flag.
-
-