|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.upgrade.UpgradeManagerImpl
public class UpgradeManagerImpl
Constructor Summary | |
---|---|
UpgradeManagerImpl()
|
|
UpgradeManagerImpl(java.lang.String fileName)
|
|
UpgradeManagerImpl(java.lang.String newBuildNumber,
java.lang.String fileName)
|
Method Summary | |
---|---|
protected UpgradeTask |
createUpgradeTask(java.lang.String className)
|
java.util.Collection |
doUpgrade(boolean partOfSetup)
Method to fire off the upgrade process |
com.atlassian.config.ApplicationConfiguration |
getApplicationConfig()
|
java.lang.String |
getBuildNumber()
This gets the pre-build number |
java.lang.String |
getFileName()
|
java.lang.String |
getNewBuildNumber()
|
protected org.dom4j.Document |
getUpgradeDocument()
|
java.util.SortedMap |
getUpgrades()
Gets a map of upgrade tasks which need to run. |
boolean |
isFullReindexWhenUpgradesFinish()
|
boolean |
needUpgrade()
Determines whether we need to run the upgrade or not. |
protected void |
populateRelevantUpgrades()
|
void |
setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
|
void |
setBuildNumber(java.lang.String buildNumber)
|
void |
setBuildResultsIndexer(BuildResultsIndexer buildResultsIndexer)
|
void |
setFileName(java.lang.String fileName)
|
void |
setFullReindexWhenUpgradesFinish(boolean fullReindexWhenUpgradesFinish)
Marks that the UpgradeManger should do a full reindex when all upgrades have finished successfully |
void |
setNewBuildNumber(java.lang.String newBuildNumber)
|
void |
setSystemStatisticsBean(SystemStatisticsBean systemStatisticsBean)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpgradeManagerImpl(java.lang.String newBuildNumber, java.lang.String fileName)
public UpgradeManagerImpl(java.lang.String fileName)
public UpgradeManagerImpl()
Method Detail |
---|
public boolean needUpgrade()
UpgradeManager
needUpgrade
in interface UpgradeManager
boolean
whether the build was successful or notpublic java.util.Collection doUpgrade(boolean partOfSetup) throws java.lang.Exception
UpgradeManager
doUpgrade
in interface UpgradeManager
partOfSetup
- - whether or not the upgrade is being run as part of the setup
Collection
a string collection of error messages. Collection not empty
denotes error occured on upgrade
java.lang.Exception
protected void populateRelevantUpgrades()
protected UpgradeTask createUpgradeTask(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
protected org.dom4j.Document getUpgradeDocument() throws org.dom4j.DocumentException
org.dom4j.DocumentException
public java.lang.String getBuildNumber()
UpgradeManager
getBuildNumber
in interface UpgradeManager
public void setBuildNumber(java.lang.String buildNumber) throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
public java.util.SortedMap getUpgrades()
UpgradeManager
getUpgrades
in interface UpgradeManager
SortedMap
map of upgrade tasks, keys are the string representations
of the build number.public java.lang.String getNewBuildNumber()
public void setNewBuildNumber(java.lang.String newBuildNumber)
public com.atlassian.config.ApplicationConfiguration getApplicationConfig()
public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public boolean isFullReindexWhenUpgradesFinish()
isFullReindexWhenUpgradesFinish
in interface UpgradeManager
public void setFullReindexWhenUpgradesFinish(boolean fullReindexWhenUpgradesFinish)
UpgradeManager
setFullReindexWhenUpgradesFinish
in interface UpgradeManager
public void setBuildResultsIndexer(BuildResultsIndexer buildResultsIndexer)
public void setSystemStatisticsBean(SystemStatisticsBean systemStatisticsBean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |