org.sonar.api.platform
Interface ServerUpgradeStatus

All Superinterfaces:
ServerComponent

public interface ServerUpgradeStatus
extends ServerComponent

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 when isFreshInstall() is true.
 

Method Detail

isUpgraded

boolean isUpgraded()
Has the database been upgraded during the current startup ? Return false when isFreshInstall() 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 <=0 if db created from scratch.



Copyright © 2009-2014 SonarSource. All Rights Reserved.