public class DefaultUpgradeCallback extends java.lang.Object implements Upgrade.Callback
Upgrade.Callback that indicates
status/progress by printing to System.out.| Constructor and Description |
|---|
DefaultUpgradeCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
noUpgradeNeeded()
Called if no upgrade is needed because app version is already the latest version.
|
void |
onConfigure()
Call to indicate that configuration files are being copoied from
the original jar file to the updated jar file.
|
void |
onDownloadTick()
Called to indicate that download progress has been made.
|
void |
onError(java.lang.String errMsg)
Called to indicate that an error occurred.
|
void |
onSuccess(java.lang.String upgradedFileName)
Called to indicate that the upgrade succeeded.
|
void |
upgradeNeeded(java.lang.String latestVersion)
Called if an upgrade is needed and downloading/configuring the latest
version of the jar file is about to proceed.
|
public void onSuccess(java.lang.String upgradedFileName)
Upgrade.CallbackonSuccess in interface Upgrade.CallbackupgradedFileName - the filename of the upgraded and configured jar filepublic void onError(java.lang.String errMsg)
Upgrade.CallbackonError in interface Upgrade.CallbackerrMsg - error messagepublic void onDownloadTick()
Upgrade.CallbackonDownloadTick in interface Upgrade.Callbackpublic void upgradeNeeded(java.lang.String latestVersion)
Upgrade.CallbackupgradeNeeded in interface Upgrade.CallbacklatestVersion - the latest versionpublic void noUpgradeNeeded()
Upgrade.CallbacknoUpgradeNeeded in interface Upgrade.Callbackpublic void onConfigure()
Upgrade.CallbackonConfigure in interface Upgrade.Callback