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.
  • 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<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()