java.lang.Object
org.apache.ignite3.internal.cli.commands.BaseCommand
org.apache.ignite.migrationtools.cli.persistence.commands.PersistenceBaseCmd

public class PersistenceBaseCmd extends org.apache.ignite3.internal.cli.commands.BaseCommand
Base for all the Persistence commands.
  • Field Summary

    Fields inherited from class org.apache.ignite3.internal.cli.commands.BaseCommand

    spec, verbose
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<org.apache.ignite.migrationtools.persistence.MigrationKernalContext>
    createAndStartMigrationContext(PersistenceParams params, org.apache.ignite.configuration.IgniteConfiguration cfg)
    Creates and starts the MigrationKernalContexts for the provided params and configurations.
    static @Nullable org.apache.ignite.configuration.IgniteConfiguration
    Creates a valid Ignite configuration.
     

    Methods inherited from class org.apache.ignite3.internal.cli.commands.BaseCommand

    createHandler, runFlow, runPipeline

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PersistenceBaseCmd

      public PersistenceBaseCmd()
  • Method Details

    • createValidIgniteCfg

      @Nullable public static @Nullable org.apache.ignite.configuration.IgniteConfiguration createValidIgniteCfg(PersistenceParams params)
      Creates a valid Ignite configuration.
      Parameters:
      params - The commands param.
      Returns:
      A valid IgniteConfiguration, or null if it doesn't exist.
    • createAndStartMigrationContext

      public static List<org.apache.ignite.migrationtools.persistence.MigrationKernalContext> createAndStartMigrationContext(PersistenceParams params, org.apache.ignite.configuration.IgniteConfiguration cfg) throws org.apache.ignite.IgniteCheckedException
      Creates and starts the MigrationKernalContexts for the provided params and configurations.
      Parameters:
      params - The command params.
      cfg - The Ignite 2 cluster configuration.
      Returns:
      A list with the started MigrationKernalContexts.
      Throws:
      org.apache.ignite.IgniteCheckedException - if any error occurs.
    • params

      public PersistenceParams params()