Package com.atlassian.confluence.cluster
Interface ZduManager
-
- All Known Implementing Classes:
DefaultZduManager
,NonClusteredZduManager
@Transactional public interface ZduManager
This is a publicly available component used by the ZDU plugin- Since:
- 7.9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
endUpgrade()
End an upgrade.Map<ClusterNodeInformation,CompletionStage<NodeZduInfo>>
getNodesZduInfo()
Gets zdu information from all nodes in the cluster.ZduStatus
getUpgradeStatus()
boolean
isPendingDatabaseFinalization()
Determines whether the database requires finalization upgrades tasks to run in order to upgrade.void
retryFinalization()
Retry running the finalization tasksZduStatus
startUpgrade()
Start an upgrade.
-
-
-
Method Detail
-
getUpgradeStatus
@Transactional(readOnly=true) 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
@Transactional(readOnly=true) Map<ClusterNodeInformation,CompletionStage<NodeZduInfo>> getNodesZduInfo()
Gets zdu information from all nodes in the cluster.- Returns:
- Map of
ClusterNodeInformation
toCompletionStage
of the ZDU info from the node - Since:
- 7.14
-
retryFinalization
void retryFinalization()
Retry running the finalization tasks- Since:
- 7.14
-
isPendingDatabaseFinalization
@Transactional(readOnly=true) 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
-
-