public class UpgradeStatus extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
STATUS_FILE
The Constant STATUS_FILE.
|
| Constructor and Description |
|---|
UpgradeStatus()
Instantiates a new upgrade status.
|
UpgradeStatus(File statusFile)
Instantiates a new upgrade status.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLastExecutionTime(OnmsUpgrade upg)
Gets the last execution time.
|
void |
markAsExecuted(OnmsUpgrade upg)
Mark as executed.
|
boolean |
wasExecuted(OnmsUpgrade upg)
Was executed.
|
public static final String STATUS_FILE
public UpgradeStatus()
throws OnmsUpgradeException
OnmsUpgradeException - the OpenNMS upgrade exceptionpublic UpgradeStatus(File statusFile) throws OnmsUpgradeException
statusFile - the status fileOnmsUpgradeException - the OpenNMS upgrade exceptionpublic boolean wasExecuted(OnmsUpgrade upg)
upg - the upgrade implementation classpublic String getLastExecutionTime(OnmsUpgrade upg)
upg - the upgrade implementation classpublic void markAsExecuted(OnmsUpgrade upg) throws OnmsUpgradeException
upg - the upgrade implementation classOnmsUpgradeException - the OpenNMS upgrade exceptionCopyright © 2022. All rights reserved.