Interface MigrationService

  • All Known Implementing Classes:
    MigrationServiceImpl

    public interface MigrationService
    Simple OSGI service used for migrating Unomi data
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
    • Method Detail

      • migrateUnomi

        void migrateUnomi​(String originVersion,
                          boolean skipConfirmation,
                          org.apache.karaf.shell.api.console.Session session)
                   throws Exception
        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)
        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