Class DefaultZduManager
java.lang.Object
com.atlassian.confluence.impl.cluster.DefaultZduManager
- All Implemented Interfaces:
 ZduManager
- Since:
 - 7.9
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDefaultZduManager(ZduStatusDao zduStatusDao, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.event.api.EventPublisher eventPublisher, ClusterManager clusterManager, UpgradeFinalizationManager finalizationManager, SynchronizationManager synchronizationManager)  - 
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. 
- 
Constructor Details
- 
DefaultZduManager
public DefaultZduManager(ZduStatusDao zduStatusDao, com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.event.api.EventPublisher eventPublisher, ClusterManager clusterManager, UpgradeFinalizationManager finalizationManager, SynchronizationManager synchronizationManager)  
 - 
 - 
Method Details
- 
getUpgradeStatus
- Specified by:
 getUpgradeStatusin interfaceZduManager- Returns:
 - the current upgrade State. This will be STABLE if no state has been explicitly set
 
 - 
startUpgrade
Description copied from interface:ZduManagerStart an upgrade. This will record the current cluster version and enable upgrade mode.- Specified by:
 startUpgradein interfaceZduManager- Returns:
 - the new cluster upgrade status
 
 - 
endUpgrade
public void endUpgrade()Description copied from interface:ZduManagerEnd an upgrade. This will set the upgrade mode to disabled.- Specified by:
 endUpgradein interfaceZduManager
 - 
retryFinalization
public void retryFinalization()Description copied from interface:ZduManagerRetry running the finalization tasks- Specified by:
 retryFinalizationin interfaceZduManager
 - 
isPendingDatabaseFinalization
public boolean isPendingDatabaseFinalization()Description copied from interface:ZduManagerDetermines 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.- Specified by:
 isPendingDatabaseFinalizationin interfaceZduManager- Returns:
 - true if the Application build number is higher than the database build number.
 
 - 
getNodesZduInfo
Description copied from interface:ZduManagerGets zdu information from all nodes in the cluster.- Specified by:
 getNodesZduInfoin interfaceZduManager- Returns:
 - Map of 
ClusterNodeInformationtoCompletionStageof the ZDU info from the node 
 
 -