|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.upgrade.AbstractUpgradeManager
public abstract class AbstractUpgradeManager
Field Summary | |
---|---|
protected java.util.Comparator<java.lang.String> |
buildNumberComp
|
protected static org.apache.log4j.Logger |
log
Deprecated. |
Constructor Summary | |
---|---|
AbstractUpgradeManager()
|
Method Summary | |
---|---|
protected void |
doUpgrade()
|
protected java.lang.String |
getConfiguredBuildNumber()
This is the build number of the current version that the user is running under. |
protected abstract java.lang.String |
getDatabaseBuildNumber()
This is the build number of the data in the database. |
java.util.List<UpgradeError> |
getErrors()
|
protected abstract java.lang.String |
getRealBuildNumber()
The is the build number of the new version of Confluence being upgraded to. |
java.util.List<UpgradeTask> |
getSchemaUpgradeTasks()
|
java.util.List<UpgradeTask> |
getUpgradeTasks()
|
boolean |
isUpgraded()
|
boolean |
needUpgrade()
|
protected boolean |
permitDatabaseUpgrades()
This is used to guard against database upgrades being performed multiple times on the same database. |
protected void |
postUpgrade()
|
protected abstract java.util.List<java.lang.String> |
runUpgradePrerequisites()
Runs all upgrade prerequisites. |
void |
setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
|
protected void |
setConfiguredBuildNumber(java.lang.String buildNumber)
|
protected abstract void |
setDatabaseBuildNumber(java.lang.String databaseBuildNumber)
Once the upgrade is complete, we'll need to set the new database build number in the database. |
void |
setPreSchemaUpgradeTasks(java.util.List<UpgradeTask> preSchemaUpgradeTasks)
|
void |
setSchemaHelper(SchemaHelper schemaHelper)
|
void |
setSchemaUpgradeTasks(java.util.List<UpgradeTask> upgradeTasks)
|
void |
setUpgradeTasks(java.util.List<UpgradeTask> upgradeTasks)
|
void |
upgrade(com.atlassian.johnson.JohnsonEventContainer agentJohnson)
|
protected void |
upgradeFinished()
Once all upgrade tasks have been completed without error, make sure the build number stored in the applications main configuration file and database now matches the build number of this version of the release. |
protected void |
upgradeSchema()
|
protected void |
upgradeStarted()
|
protected void |
upgradeTaskFailed(UpgradeTask upgradeTask,
java.lang.Throwable e)
|
protected void |
upgradeTaskSucceeded(UpgradeTask upgradeTask)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated protected static final org.apache.log4j.Logger log
protected final java.util.Comparator<java.lang.String> buildNumberComp
Constructor Detail |
---|
public AbstractUpgradeManager()
Method Detail |
---|
public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
public void setSchemaHelper(SchemaHelper schemaHelper)
public void upgrade(com.atlassian.johnson.JohnsonEventContainer agentJohnson) throws UpgradeException
upgrade
in interface UpgradeManager
UpgradeException
protected void doUpgrade() throws java.lang.Throwable
java.lang.Throwable
protected void upgradeSchema() throws com.atlassian.config.ConfigurationException, UpgradeException
com.atlassian.config.ConfigurationException
UpgradeException
protected void upgradeTaskSucceeded(UpgradeTask upgradeTask) throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
protected void upgradeTaskFailed(UpgradeTask upgradeTask, java.lang.Throwable e)
protected void upgradeStarted() throws java.lang.Exception
java.lang.Exception
public void setPreSchemaUpgradeTasks(java.util.List<UpgradeTask> preSchemaUpgradeTasks)
public void setUpgradeTasks(java.util.List<UpgradeTask> upgradeTasks)
public java.util.List<UpgradeTask> getUpgradeTasks()
public void setSchemaUpgradeTasks(java.util.List<UpgradeTask> upgradeTasks)
public java.util.List<UpgradeTask> getSchemaUpgradeTasks()
public java.util.List<UpgradeError> getErrors()
getErrors
in interface UpgradeManager
protected abstract java.util.List<java.lang.String> runUpgradePrerequisites()
protected java.lang.String getConfiguredBuildNumber()
protected void setConfiguredBuildNumber(java.lang.String buildNumber) throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
public boolean needUpgrade()
needUpgrade
in interface UpgradeManager
protected void upgradeFinished() throws java.lang.Exception
java.lang.Exception
protected abstract java.lang.String getRealBuildNumber()
protected abstract java.lang.String getDatabaseBuildNumber()
getConfiguredBuildNumber()
.
protected abstract void setDatabaseBuildNumber(java.lang.String databaseBuildNumber) throws java.lang.Exception
java.lang.Exception
protected boolean permitDatabaseUpgrades() throws UpgradeException
UpgradeException
protected void postUpgrade()
public boolean isUpgraded()
isUpgraded
in interface UpgradeManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |