use of org.apache.ignite.internal.processors.platform.memory.PlatformExternalMemory in project ignite by apache.
the class PlatformAbstractBootstrap method start.
/** {@inheritDoc} */
@Override
public PlatformProcessor start(IgniteConfiguration cfg, @Nullable GridSpringResourceContext springCtx, long envPtr, long dataPtr) {
final PlatformInputStream input = new PlatformExternalMemory(null, dataPtr).input();
Ignition.setClientMode(input.readBoolean());
processInput(input, cfg);
IgniteConfiguration cfg0 = closure(envPtr).apply(cfg);
try {
IgniteEx node = (IgniteEx) IgnitionEx.start(cfg0, springCtx);
return node.context().platform();
} catch (IgniteCheckedException e) {
throw U.convertException(e);
}
}
use of org.apache.ignite.internal.processors.platform.memory.PlatformExternalMemory in project ignite by apache.
the class PlatformAbstractBootstrap method init.
/**
* {@inheritDoc}
*/
@Override
public void init(long dataPtr) {
final PlatformInputStream input = new PlatformExternalMemory(null, dataPtr).input();
Ignition.setClientMode(input.readBoolean());
processInput(input);
}
Aggregations