|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.upgrader.DefaultVersionUpgrader
public class DefaultVersionUpgrader
This class upgrades the bamboo persisted files to the latest version
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.upgrader.VersionUpgrader |
---|
CURRENT_VERSION |
Constructor Summary | |
---|---|
DefaultVersionUpgrader(File buildDir,
File configurationDirectory)
|
Method Summary | |
---|---|
void |
clearStatusMessages()
|
protected List |
getConvertors(File buildDir,
File configurationDirectory)
|
int |
getCurrentVersion()
Returns the actual version of the current version. |
int |
getPercentageComplete()
|
String |
getUpgradeStatusMessage()
|
VersionStamper |
getVersionStamper()
|
void |
setBuildDir(File buildDir)
Where's the build data files that need updating? |
void |
setCounter(int counter)
|
void |
setCurrentVersion(int currentVersion)
|
void |
setDataDirectory(File dataDirectory)
Where's the configuration data files that need updating? |
void |
updateToCurrentVersion()
Update the current xml-data files to the latest version |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultVersionUpgrader(File buildDir, File configurationDirectory)
Method Detail |
---|
protected List getConvertors(File buildDir, File configurationDirectory)
public void updateToCurrentVersion()
updateToCurrentVersion
in interface VersionUpgrader
public String getUpgradeStatusMessage()
getUpgradeStatusMessage
in interface VersionUpgrader
public void setBuildDir(File buildDir)
VersionUpgrader
setBuildDir
in interface VersionUpgrader
buildDir
- The bamboo build data directorypublic void setDataDirectory(File dataDirectory)
VersionUpgrader
setDataDirectory
in interface VersionUpgrader
dataDirectory
- The bamboo configuration data directorypublic int getCurrentVersion()
VersionUpgrader
getCurrentVersion
in interface VersionUpgrader
public VersionStamper getVersionStamper()
public int getPercentageComplete()
getPercentageComplete
in interface VersionUpgrader
public void clearStatusMessages()
clearStatusMessages
in interface VersionUpgrader
public void setCurrentVersion(int currentVersion)
public void setCounter(int counter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |