public class

DefaultUpgradeGate

extends Object
implements UpgradeGate
java.lang.Object
   ↳ com.atlassian.confluence.upgrade.impl.DefaultUpgradeGate

Summary

Public Methods
boolean isPluginDependentUpgradeCompleteWithWait()
Check is the plugin dependent upgrades have been completed.
boolean isUpgradeRequiredWithWait()
Check the upgrade status set via setUpgradeRequired(boolean).
void setPluginDependentUpgradeComplete(boolean complete)
void setUpgradeRequired(boolean required)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.upgrade.UpgradeGate

Public Methods

public boolean isPluginDependentUpgradeCompleteWithWait ()

Check 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_SLEEP milliseconds before returning a default value of false.

Returns
  • true if the plugin dependent upgrades are complete; false if the waiting times out.

public boolean isUpgradeRequiredWithWait ()

Check the upgrade status set via 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.

Returns
  • true if an upgrade is required; false if timeout or it is not required.

public void setPluginDependentUpgradeComplete (boolean complete)

public void setUpgradeRequired (boolean required)