Class 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 Detail

      • MigrationScript

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

      • 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object