Class MigrationKernalContext

java.lang.Object
org.apache.ignite.internal.GridKernalContextImpl
org.apache.ignite.migrationtools.persistence.MigrationKernalContext
All Implemented Interfaces:
Externalizable, Serializable, Iterable<org.apache.ignite.internal.GridComponent>, org.apache.ignite.internal.GridKernalContext

public class MigrationKernalContext extends org.apache.ignite.internal.GridKernalContextImpl
Minimal kernal context used to read an Apache Ignite 2 cluster working dir.

Inspired in the StandaloneGridKernalContext.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    MigrationKernalContext(org.apache.ignite.configuration.IgniteConfiguration cfg, File nodeFolder, Serializable nodeConsistentId)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Starts the context.
    void
    Stops the context.
    static List<String>
    validateConfigurations(org.apache.ignite.configuration.IgniteConfiguration cfg)
    Validates the provided cache configuration.

    Methods inherited from class org.apache.ignite.internal.GridKernalContextImpl

    add, add, addHelper, addNodeAttribute, affinity, cache, cacheObjects, checkpoint, clientDisconnected, clientListener, clientNode, closure, cluster, collision, components, compress, config, continuous, createComponent, dataStream, dataStructures, defragmentation, deploy, diagnostic, discovery, distributedConfiguration, distributedMetastorage, durableBackgroundTask, encryption, event, exceptionRegistry, failover, failure, gateway, getAsyncContinuationExecutor, grid, hasNodeAttribute, igniteInstanceName, indexing, indexProcessor, internalSubscriptionProcessor, invalid, io, isStopping, iterator, job, jobMetric, loadBalancing, localNodeId, log, log, longJvmPauseDetector, maintenanceRegistry, mapping, marshallerContext, metric, nodeAttribute, nodeAttributes, pdsFolderResolver, performance, performanceStatistics, platform, pluginProvider, plugins, pools, ports, printMemoryStats, query, readExternal, readResolve, recoveryMode, recoveryMode, resource, rest, schedule, security, segmentation, segmented, service, session, state, systemView, task, timeout, toString, tracing, transformer, uncaughtExceptionHandler, userVersion, workersRegistry, writeExternal

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • MigrationKernalContext

      public MigrationKernalContext(org.apache.ignite.configuration.IgniteConfiguration cfg, File nodeFolder, Serializable nodeConsistentId) throws org.apache.ignite.IgniteCheckedException
      Constructor.
      Parameters:
      cfg - Ignite 2 cluster configuration.
      nodeFolder - Folder of the node.
      nodeConsistentId - Consistent id of the node.
      Throws:
      org.apache.ignite.IgniteCheckedException - in case of error.
  • Method Details

    • validateConfigurations

      public static List<String> validateConfigurations(org.apache.ignite.configuration.IgniteConfiguration cfg)
      Validates the provided cache configuration.
    • start

      public void start() throws org.apache.ignite.IgniteCheckedException
      Starts the context.
      Throws:
      org.apache.ignite.IgniteCheckedException - in case of error.
    • stop

      public void stop() throws org.apache.ignite.IgniteCheckedException
      Stops the context.
      Throws:
      org.apache.ignite.IgniteCheckedException - in case of error.