Package step.migration
Class MigrationTask
- java.lang.Object
-
- step.migration.MigrationTask
-
public abstract class MigrationTask extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected step.core.VersionasOfVersionprotected step.core.collections.CollectionFactorycollectionFactoryprotected static org.slf4j.Loggerloggerprotected step.migration.MigrationContextmigrationContext
-
Constructor Summary
Constructors Constructor Description MigrationTask(step.core.Version asOfVersion, step.core.collections.CollectionFactory collectionFactory, step.migration.MigrationContext migrationContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description step.core.VersiongetAsOfVersion()protected step.core.collections.Collection<step.core.collections.Document>getDocumentCollection(String name)abstract voidrunDowngradeScript()Script to be executed when migrating from the version asOfVersion to a version lower than asOfVersionabstract voidrunUpgradeScript()Script to be executed when migrating from a version lower than asOfVersion to the version asOfVersion
-
-
-
Method Detail
-
getAsOfVersion
public step.core.Version getAsOfVersion()
-
runUpgradeScript
public abstract void runUpgradeScript()
Script to be executed when migrating from a version lower than asOfVersion to the version asOfVersion
-
runDowngradeScript
public abstract void runDowngradeScript()
Script to be executed when migrating from the version asOfVersion to a version lower than asOfVersion
-
getDocumentCollection
protected step.core.collections.Collection<step.core.collections.Document> getDocumentCollection(String name)
-
-