Class MigrationScript
java.lang.Object
org.apache.unomi.shell.migration.service.MigrationScript
- All Implemented Interfaces:
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
ConstructorsModifierConstructorDescriptionprotected
MigrationScript
(URL scriptURL, org.osgi.framework.Bundle bundle) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(MigrationScript other) boolean
protected org.osgi.framework.Bundle
protected groovy.lang.Script
protected String
getName()
protected int
protected String
protected org.osgi.framework.Version
int
hashCode()
protected void
setCompiledScript
(groovy.lang.Script compiledScript) toString()
-
Constructor Details
-
MigrationScript
- Throws:
IOException
-
-
Method Details
-
getCompiledScript
protected groovy.lang.Script getCompiledScript() -
setCompiledScript
protected void setCompiledScript(groovy.lang.Script compiledScript) -
getScript
-
getBundle
protected org.osgi.framework.Bundle getBundle() -
getVersion
protected org.osgi.framework.Version getVersion() -
getPriority
protected int getPriority() -
getName
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MigrationScript>
-
equals
-
hashCode
public int hashCode()
-