public class PlatformIgnition extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
environmentPointer(String gridName)
Get environment pointer of the given instance.
|
static PlatformProcessor |
instance(String gridName)
Get instance by environment pointer.
|
static PlatformProcessor |
start(String springCfgPath,
String gridName,
int factoryId,
long envPtr,
long dataPtr)
Start Ignite node in platform mode.
|
static boolean |
stop(String gridName,
boolean cancel)
Stop single instance.
|
static void |
stopAll(boolean cancel)
Stop all instances.
|
public static PlatformProcessor start(@Nullable String springCfgPath, @Nullable String gridName, int factoryId, long envPtr, long dataPtr)
springCfgPath - Spring configuration path.gridName - Grid name.factoryId - Factory ID.envPtr - Environment pointer.dataPtr - Optional pointer to additional data required for startup.@Nullable public static PlatformProcessor instance(@Nullable String gridName)
gridName - Grid name.null if it doesn't exist (never started or stopped).public static long environmentPointer(@Nullable String gridName)
gridName - Grid name.0 in case grid with such name doesn't exist.public static boolean stop(@Nullable String gridName, boolean cancel)
gridName - Grid name,cancel - Cancel flag.True if instance was found and stopped.public static void stopAll(boolean cancel)
cancel - Cancel flag.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016