org.sonar.server.platform
Class DefaultServerUpgradeStatus
java.lang.Object
org.sonar.server.platform.DefaultServerUpgradeStatus
- All Implemented Interfaces:
- ServerUpgradeStatus, ServerComponent
public final class DefaultServerUpgradeStatus
- extends Object
- implements ServerUpgradeStatus
- Since:
- 2.5
Method Summary |
int |
getInitialDbVersion()
The database version before the server startup. |
boolean |
isFreshInstall()
Has the database been created from scratch during the current startup ? |
boolean |
isUpgraded()
Has the database been upgraded during the current startup ? Return false if isInstalledFromScratch() is true. |
void |
start()
|
String |
toString()
|
DefaultServerUpgradeStatus
public DefaultServerUpgradeStatus(DatabaseConnector dbConnector)
start
public void start()
isUpgraded
public boolean isUpgraded()
- Description copied from interface:
ServerUpgradeStatus
- Has the database been upgraded during the current startup ? Return false if isInstalledFromScratch() is true.
- Specified by:
isUpgraded
in interface ServerUpgradeStatus
isFreshInstall
public boolean isFreshInstall()
- Description copied from interface:
ServerUpgradeStatus
- Has the database been created from scratch during the current startup ?
- Specified by:
isFreshInstall
in interface ServerUpgradeStatus
getInitialDbVersion
public int getInitialDbVersion()
- Description copied from interface:
ServerUpgradeStatus
- The database version before the server startup. Returns <=0 if db created from scratch.
- Specified by:
getInitialDbVersion
in interface ServerUpgradeStatus
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 SonarSource. All Rights Reserved.