Class MigrationServiceImpl

java.lang.Object
org.apache.unomi.shell.migration.service.MigrationServiceImpl
All Implemented Interfaces:
MigrationService

public class MigrationServiceImpl extends Object implements MigrationService
  • Field Details

    • MIGRATION_FS_ROOT_FOLDER

      public static final String MIGRATION_FS_ROOT_FOLDER
      See Also:
    • MIGRATION_FS_SCRIPTS_FOLDER

      public static final Path MIGRATION_FS_SCRIPTS_FOLDER
  • Constructor Details

    • MigrationServiceImpl

      public MigrationServiceImpl()
  • Method Details

    • activate

      public void activate(org.osgi.service.component.ComponentContext componentContext)
    • migrateUnomi

      public void migrateUnomi(String originVersion, boolean skipConfirmation, org.apache.karaf.shell.api.console.Session session) throws Exception
      Description copied from interface: MigrationService
      This will Migrate your data in ES to be compliant with current Unomi version. It's possible to configure the migration using OSGI configuration file: org.apache.unomi.migration.cfg, if no configuration is provided then questions will be prompted during the migration process. (only in case you are in karaf shell context, if not, a missing configuration will fail the migration process)
      Specified by:
      migrateUnomi in interface MigrationService
      Parameters:
      originVersion - Origin version without suffix/qualifier (e.g: 1.2.0)
      skipConfirmation - Should the confirmation before starting the migration process be skipped ? (only supported in karaf shell context)
      session - Karaf shell session, for execution in Karaf shell context, null otherwise
      Throws:
      Exception
    • setMigrationConfig

      public void setMigrationConfig(MigrationConfig migrationConfig)