Package com.atlassian.confluence.cluster
Interface ZduManager
- All Known Implementing Classes:
DefaultZduManager,NonClusteredZduManager
public interface ZduManager
This is a publicly available component used by the ZDU plugin
- Since:
- 7.9
-
Method Summary
Modifier and TypeMethodDescriptionvoidEnd an upgrade.Gets zdu information from all nodes in the cluster.booleanDetermines whether the database requires finalization upgrades tasks to run in order to upgrade.voidRetry running the finalization tasksStart an upgrade.
-
Method Details
-
getUpgradeStatus
ZduStatus getUpgradeStatus()- Returns:
- the current upgrade State. This will be STABLE if no state has been explicitly set
-
startUpgrade
ZduStatus startUpgrade()Start an upgrade. This will record the current cluster version and enable upgrade mode.- Returns:
- the new cluster upgrade status
-
endUpgrade
void endUpgrade()End an upgrade. This will set the upgrade mode to disabled. -
getNodesZduInfo
Map<ClusterNodeInformation,CompletionStage<NodeZduInfo>> getNodesZduInfo()Gets zdu information from all nodes in the cluster.- Returns:
- Map of
ClusterNodeInformationtoCompletionStageof the ZDU info from the node - Since:
- 7.14
-
retryFinalization
void retryFinalization()Retry running the finalization tasks- Since:
- 7.14
-
isPendingDatabaseFinalization
boolean isPendingDatabaseFinalization()Determines whether the database requires finalization upgrades tasks to run in order to upgrade. This is done by comparing the database build number with the Applications build number.- Returns:
- true if the Application build number is higher than the database build number.
- Since:
- 7.14
-