Class DefaultUpgradeFinalizationManager

    • Constructor Detail

      • DefaultUpgradeFinalizationManager

        public DefaultUpgradeFinalizationManager​(ZduStatusDao zduStatusDao,
                                                 com.atlassian.beehive.ClusterLockService clusterLockService,
                                                 VersionHistoryDao versionHistoryDao,
                                                 com.atlassian.config.ApplicationConfiguration applicationConfig,
                                                 com.atlassian.event.api.EventPublisher eventPublisher,
                                                 SharedDataManager sharedDataManager,
                                                 List<String> finalizeUpgradeTasks)
      • DefaultUpgradeFinalizationManager

        public DefaultUpgradeFinalizationManager​(ZduStatusDao zduStatusDao,
                                                 com.atlassian.beehive.ClusterLockService clusterLockService,
                                                 VersionHistoryDao versionHistoryDao,
                                                 com.atlassian.config.ApplicationConfiguration applicationConfig,
                                                 com.atlassian.event.api.EventPublisher eventPublisher,
                                                 SharedDataManager sharedDataManager,
                                                 Supplier<List<UpgradeTask>> finalizeUpgradeTasksSupplier,
                                                 int productBuildNumber)
    • Method Detail

      • markAsFullyFinalized

        public void markAsFullyFinalized​(boolean updateBuildNumber)
                                  throws com.atlassian.config.ConfigurationException
        Description copied from interface: UpgradeFinalizationManager
        Once installation is complete, we'll need to set the finalized build number in the database and home directory with the product build number.
        Specified by:
        markAsFullyFinalized in interface UpgradeFinalizationManager
        Parameters:
        updateBuildNumber - whether the database and home directory build numbers should be updated
        Throws:
        com.atlassian.config.ConfigurationException
      • getFinalizedConfiguredBuildNumber

        protected int getFinalizedConfiguredBuildNumber()
      • finalizeConfigureBuildNumber

        protected void finalizeConfigureBuildNumber​(int buildNumber)
                                             throws com.atlassian.config.ConfigurationException
        Throws:
        com.atlassian.config.ConfigurationException
      • init

        @PostConstruct
        public void init()
      • destroy

        @PreDestroy
        public void destroy()