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 Summary
Constructors Modifier Constructor Description protected
MigrationScript(URL scriptURL, org.osgi.framework.Bundle bundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(MigrationScript other)
boolean
equals(Object o)
protected org.osgi.framework.Bundle
getBundle()
protected groovy.lang.Script
getCompiledScript()
protected String
getName()
protected int
getPriority()
protected String
getScript()
protected org.osgi.framework.Version
getVersion()
int
hashCode()
protected void
setCompiledScript(groovy.lang.Script compiledScript)
String
toString()
-
-
-
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()
-
compareTo
public int compareTo(MigrationScript other)
- Specified by:
compareTo
in interfaceComparable<MigrationScript>
-
-