Search in sources :

Example 1 with PlatformExternalMemory

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);
    }
}
Also used : IgniteCheckedException(org.apache.ignite.IgniteCheckedException) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) IgniteEx(org.apache.ignite.internal.IgniteEx) PlatformInputStream(org.apache.ignite.internal.processors.platform.memory.PlatformInputStream) PlatformExternalMemory(org.apache.ignite.internal.processors.platform.memory.PlatformExternalMemory)

Example 2 with PlatformExternalMemory

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);
}
Also used : PlatformInputStream(org.apache.ignite.internal.processors.platform.memory.PlatformInputStream) PlatformExternalMemory(org.apache.ignite.internal.processors.platform.memory.PlatformExternalMemory)

Aggregations

PlatformExternalMemory (org.apache.ignite.internal.processors.platform.memory.PlatformExternalMemory)2 PlatformInputStream (org.apache.ignite.internal.processors.platform.memory.PlatformInputStream)2 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)1 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)1 IgniteEx (org.apache.ignite.internal.IgniteEx)1