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 protectedMigrationScript(URL scriptURL, org.osgi.framework.Bundle bundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MigrationScript other)booleanequals(Object o)protected org.osgi.framework.BundlegetBundle()protected groovy.lang.ScriptgetCompiledScript()protected StringgetName()protected intgetPriority()protected StringgetScript()protected org.osgi.framework.VersiongetVersion()inthashCode()protected voidsetCompiledScript(groovy.lang.Script compiledScript)StringtoString()
-
-
-
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:
compareToin interfaceComparable<MigrationScript>
-
-