public class DefaultUpgradeGate extends Object implements UpgradeGate
Modifier and Type | Method and Description |
---|---|
boolean |
isPluginDependentUpgradeCompleteWithWait()
Check is the plugin dependent upgrades have been completed.
|
boolean |
isUpgradeRequiredWithWait()
Check the upgrade status set via
UpgradeGate.setUpgradeRequired(boolean) . |
void |
setPluginDependentUpgradeComplete(boolean complete) |
void |
setUpgradeRequired(boolean required) |
public void setUpgradeRequired(boolean required)
setUpgradeRequired
in interface UpgradeGate
required
- if true then an upgrade is required.public void setPluginDependentUpgradeComplete(boolean complete)
setPluginDependentUpgradeComplete
in interface UpgradeGate
complete
- if true then the plugin dependent upgrade is finished, otherwise it is not yet complete.public boolean isUpgradeRequiredWithWait()
UpgradeGate
UpgradeGate.setUpgradeRequired(boolean)
. If it has not been set yet then the caller
will keep trying for #UPGRADE_REQUIRED_CHECK_ATTEMPTS
* #UPGRADE_REQUIRED_CHECK_SLEEP
milliseconds before
returning a default value of false.isUpgradeRequiredWithWait
in interface UpgradeGate
public boolean isPluginDependentUpgradeCompleteWithWait()
UpgradeGate
#WAIT_FOR_OTHER_NODE_UPGRADE_ATTEMPTS
* #WAIT_FOR_OTHER_NODE_UPGRADE_SLEEP
milliseconds before
returning a default value of false.isPluginDependentUpgradeCompleteWithWait
in interface UpgradeGate
Copyright © 2003–2016 Atlassian. All rights reserved.