Class PersistenceBaseCmd
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic List<MigrationKernalContext>createAndStartMigrationContext(PersistenceParams params, org.apache.ignite.configuration.IgniteConfiguration cfg) Creates and starts theMigrationKernalContexts for the provided params and configurations.static @Nullable org.apache.ignite.configuration.IgniteConfigurationCreates a valid Ignite configuration.params()Methods inherited from class org.apache.ignite3.internal.cli.commands.BaseCommand
runFlow, runPipeline
-
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, ornullif 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 theMigrationKernalContexts 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
-