public abstract class AbstractRepeatableTask extends AbstractUpgradeTask
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.bandana.BandanaManager |
bandanaManager |
errors
Constructor and Description |
---|
AbstractRepeatableTask(@NotNull String buildNumber,
@NotNull String shortDescription) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doRepeatableTask() |
void |
doUpgrade()
Perform the upgrade.
|
protected @Nullable String |
getRunOnlyOnceId()
Unique key of the task, used to run the task just once.
|
protected boolean |
hasBeenRun() |
protected boolean |
needsUpgrade() |
getBuildNumber, getErrors, getShortDescription
@Autowired protected com.atlassian.bandana.BandanaManager bandanaManager
@Nullable protected @Nullable String getRunOnlyOnceId()
protected boolean hasBeenRun()
protected boolean needsUpgrade()
public void doUpgrade() throws Exception
UpgradeTask
Exception
- to signalize error during upgrade processCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.