public abstract class AbstractRepeatableTask extends AbstractUpgradeTask
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.bandana.BandanaManager |
bandanaManager |
errors
Constructor and Description |
---|
AbstractRepeatableTask(String buildNumber,
String shortDescription) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doRepeatableTask() |
void |
doUpgrade()
Perform the upgrade.
|
protected 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 String getRunOnlyOnceId()
protected boolean hasBeenRun()
protected boolean needsUpgrade()
public void doUpgrade() throws Exception
UpgradeTask
Exception
- to signalize error during upgrade processCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.