|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.upgrade.UpgradeManagerImpl
public class UpgradeManagerImpl
| Constructor Summary | |
|---|---|
UpgradeManagerImpl()
|
|
UpgradeManagerImpl(String fileName)
|
|
UpgradeManagerImpl(String newBuildNumber,
String fileName)
|
|
| Method Summary | |
|---|---|
protected void |
autowireTask(UpgradeTask task)
|
Collection |
doUpgrade()
Method to fire off the upgrade process |
ApplicationConfig |
getApplicationConfig()
|
String |
getBuildNumber()
This gets the pre-build number |
String |
getFileName()
|
String |
getNewBuildNumber()
|
protected Document |
getUpgradeDocument()
|
SortedMap |
getUpgrades()
Gets a map of upgrade tasks which need to run. |
boolean |
needUpgrade()
Determines whether we need to run the upgrade or not. |
void |
populateRelevantUpgrades()
|
void |
setApplicationConfig(ApplicationConfig applicationConfig)
|
void |
setBuildNumber(String buildNumber)
|
void |
setFileName(String fileName)
|
void |
setNewBuildNumber(String newBuildNumber)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpgradeManagerImpl(String newBuildNumber,
String fileName)
public UpgradeManagerImpl(String fileName)
public UpgradeManagerImpl()
| Method Detail |
|---|
public boolean needUpgrade()
UpgradeManager
needUpgrade in interface UpgradeManagerboolean whether the build was successful or not
public Collection doUpgrade()
throws Exception
UpgradeManager
doUpgrade in interface UpgradeManagerCollection a string collection of error messages. Collection not empty
denotes error occured on upgrade
Exceptionpublic void populateRelevantUpgrades()
protected void autowireTask(UpgradeTask task)
protected Document getUpgradeDocument()
throws DocumentException
DocumentExceptionpublic String getBuildNumber()
UpgradeManager
getBuildNumber in interface UpgradeManager
public void setBuildNumber(String buildNumber)
throws ConfigurationException
ConfigurationExceptionpublic SortedMap getUpgrades()
UpgradeManager
getUpgrades in interface UpgradeManagerSortedMap map of upgrade tasks, keys are the string representations
of the build number.public String getNewBuildNumber()
public void setNewBuildNumber(String newBuildNumber)
public ApplicationConfig getApplicationConfig()
public void setApplicationConfig(ApplicationConfig applicationConfig)
public String getFileName()
public void setFileName(String fileName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||