Class MigrationServiceImpl
- java.lang.Object
-
- org.apache.unomi.shell.migration.service.MigrationServiceImpl
-
- All Implemented Interfaces:
MigrationService
public class MigrationServiceImpl extends Object implements MigrationService
-
-
Field Summary
Fields Modifier and Type Field Description static String
MIGRATION_FS_ROOT_FOLDER
static Path
MIGRATION_FS_SCRIPTS_FOLDER
-
Constructor Summary
Constructors Constructor Description MigrationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(org.osgi.service.component.ComponentContext componentContext)
void
migrateUnomi(String originVersion, boolean skipConfirmation, org.apache.karaf.shell.api.console.Session session)
This will Migrate your data in ES to be compliant with current Unomi version.void
setMigrationConfig(MigrationConfig migrationConfig)
-
-
-
Field Detail
-
MIGRATION_FS_ROOT_FOLDER
public static final String MIGRATION_FS_ROOT_FOLDER
- See Also:
- Constant Field Values
-
MIGRATION_FS_SCRIPTS_FOLDER
public static final Path MIGRATION_FS_SCRIPTS_FOLDER
-
-
Method Detail
-
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 interfaceMigrationService
- 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)
-
-