Package org.sonar.api.platform
Interface ServerUpgradeStatus
-
@ServerSide @ComputeEngineSide public interface ServerUpgradeStatus
- Since:
- 2.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 whenisFreshInstall()
is true.
-
-
-
Method Detail
-
isUpgraded
boolean isUpgraded()
Has the database been upgraded during the current startup ? Return false whenisFreshInstall()
is true.
-
isFreshInstall
boolean isFreshInstall()
Has the database been created from scratch during the current startup ?
-
getInitialDbVersion
int getInitialDbVersion()
The database version before the server startup. Returns a non-zero negative value if db created from scratch.
-
-