Class MigrationScript

java.lang.Object
org.apache.unomi.shell.migration.service.MigrationScript
All Implemented Interfaces:
Comparable<MigrationScript>

public class MigrationScript extends Object implements Comparable<MigrationScript>
Java bean representing a migration script, current implementation support groovy script as migration script following file name pattern need to be respected: migrate-VERSION-PRIORITY-NAME.groovy example: migrate-2.0.0-01-segmentReindex.groovy
  • Constructor Details

    • MigrationScript

      protected MigrationScript(URL scriptURL, org.osgi.framework.Bundle bundle) throws IOException
      Throws:
      IOException
  • Method Details

    • getCompiledScript

      protected groovy.lang.Script getCompiledScript()
    • setCompiledScript

      protected void setCompiledScript(groovy.lang.Script compiledScript)
    • getScript

      protected String getScript()
    • getBundle

      protected org.osgi.framework.Bundle getBundle()
    • getVersion

      protected org.osgi.framework.Version getVersion()
    • getPriority

      protected int getPriority()
    • getName

      protected String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(MigrationScript other)
      Specified by:
      compareTo in interface Comparable<MigrationScript>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object