Package org.commonjava.indy.action
Interface MigrationAction
-
- All Superinterfaces:
IndyLifecycleAction
public interface MigrationAction extends IndyLifecycleAction
Converts storage/data formats from older versions of Indy into up-to-date forms. These are run right after the system boots, but before Indy enters its startup sequence (seeStartupAction).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMigrationPriority()Used to sort the actions, with highest priority executing first.booleanmigrate()Execute the migration, and return whether anything was changed as a result.-
Methods inherited from interface org.commonjava.indy.action.IndyLifecycleAction
getId
-
-
-
-
Method Detail
-
migrate
boolean migrate() throws IndyLifecycleExceptionExecute the migration, and return whether anything was changed as a result.- Throws:
IndyLifecycleException
-
getMigrationPriority
int getMigrationPriority()
Used to sort the actions, with highest priority executing first. Priority should generally be between 1-100.
-
-