Class AbstractPhase2MoveAdminConfigToDatabaseUpgradeTask
- java.lang.Object
-
- com.atlassian.bamboo.upgrade.AbstractUpgradeTask
-
- com.atlassian.bamboo.upgrade.tasks.AbstractPhase2MoveAdminConfigToDatabaseUpgradeTask
-
- All Implemented Interfaces:
UpgradeTask
@Component public abstract class AbstractPhase2MoveAdminConfigToDatabaseUpgradeTask extends AbstractUpgradeTask
An abstract task that should be used whenever an upgrade task for AdminConfig->DB migration is done. Helps with moving the content from a file created in Phase 1AbstractPhase1MoveAdminConfigToDatabaseUpgradeTask
into the db.
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull AbstractPhase1MoveAdminConfigToDatabaseUpgradeTask
phase1UpgradeTask
protected CustomizableXStreamFactory
xstreamFactory
-
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPhase2MoveAdminConfigToDatabaseUpgradeTask(@NotNull String shortDescription, @NotNull AbstractPhase1MoveAdminConfigToDatabaseUpgradeTask phase1UpgradeTask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @Nullable File
getValidPhase1File()
-
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.upgrade.UpgradeTask
doUpgrade
-
-
-
-
Field Detail
-
xstreamFactory
@Autowired protected CustomizableXStreamFactory xstreamFactory
-
phase1UpgradeTask
@NotNull protected final @NotNull AbstractPhase1MoveAdminConfigToDatabaseUpgradeTask phase1UpgradeTask
-
-
Constructor Detail
-
AbstractPhase2MoveAdminConfigToDatabaseUpgradeTask
protected AbstractPhase2MoveAdminConfigToDatabaseUpgradeTask(@NotNull @NotNull String shortDescription, @NotNull @NotNull AbstractPhase1MoveAdminConfigToDatabaseUpgradeTask phase1UpgradeTask)
-
-
Method Detail
-
getValidPhase1File
@Nullable protected @Nullable File getValidPhase1File()
-
-