Class DefaultUpgradeGate
- java.lang.Object
-
- com.atlassian.confluence.upgrade.impl.DefaultUpgradeGate
-
- All Implemented Interfaces:
UpgradeGate
public class DefaultUpgradeGate extends Object implements UpgradeGate
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPluginDependentUpgradeCompleteWithWait()Check is the plugin dependent upgrades have been completed.booleanisUpgradeRequiredWithWait()Check the upgrade status set viaUpgradeGate.setUpgradeRequired(boolean).voidsetPluginDependentUpgradeComplete(boolean complete)voidsetUpgradeRequired(boolean required)
-
-
-
Method Detail
-
setUpgradeRequired
public void setUpgradeRequired(boolean required)
- Specified by:
setUpgradeRequiredin interfaceUpgradeGate- Parameters:
required- if true then an upgrade is required.
-
setPluginDependentUpgradeComplete
public void setPluginDependentUpgradeComplete(boolean complete)
- Specified by:
setPluginDependentUpgradeCompletein interfaceUpgradeGate- Parameters:
complete- if true then the plugin dependent upgrade is finished, otherwise it is not yet complete.
-
isUpgradeRequiredWithWait
public boolean isUpgradeRequiredWithWait()
Description copied from interface:UpgradeGateCheck the upgrade status set viaUpgradeGate.setUpgradeRequired(boolean). If it has not been set yet then the caller will keep trying for#UPGRADE_REQUIRED_CHECK_ATTEMPTS*#UPGRADE_REQUIRED_CHECK_SLEEPmilliseconds before returning a default value of false.- Specified by:
isUpgradeRequiredWithWaitin interfaceUpgradeGate- Returns:
- true if an upgrade is required; false if timeout or it is not required.
-
isPluginDependentUpgradeCompleteWithWait
public boolean isPluginDependentUpgradeCompleteWithWait()
Description copied from interface:UpgradeGateCheck is the plugin dependent upgrades have been completed. If this is not yet true (indicating another node is performing the upgrades) then the caller will keep trying for#WAIT_FOR_OTHER_NODE_UPGRADE_ATTEMPTS*#WAIT_FOR_OTHER_NODE_UPGRADE_SLEEPmilliseconds before returning a default value of false.- Specified by:
isPluginDependentUpgradeCompleteWithWaitin interfaceUpgradeGate- Returns:
- true if the plugin dependent upgrades are complete; false if the waiting times out.
-
-