Class MigrationTask

    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
      • asOfVersion

        protected final Version asOfVersion
      • collectionFactory

        protected final step.core.collections.CollectionFactory collectionFactory
    • Constructor Detail

      • MigrationTask

        public MigrationTask​(Version asOfVersion,
                             step.core.collections.CollectionFactory collectionFactory,
                             MigrationContext migrationContext)
    • Method Detail

      • getAsOfVersion

        public 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​(java.lang.String name)