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 CollectionFactorycollectionFactoryprotected static org.slf4j.Loggerloggerprotected MigrationContextmigrationContext
-
Constructor Summary
Constructors Constructor Description MigrationTask(step.core.Version asOfVersion, CollectionFactory collectionFactory, MigrationContext migrationContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description step.core.VersiongetAsOfVersion()protected Collection<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
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
asOfVersion
protected final step.core.Version asOfVersion
-
migrationContext
protected final MigrationContext migrationContext
-
collectionFactory
protected final CollectionFactory collectionFactory
-
-
Constructor Detail
-
MigrationTask
public MigrationTask(step.core.Version asOfVersion, CollectionFactory collectionFactory, MigrationContext migrationContext)
-
-
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 Collection<Document> getDocumentCollection(String name)
-
-