Class Upgrade


  • public final class Upgrade
    extends Object
    This class contains the table of upgrade tasks that need performing when upgrading from one version to another.
    • Method Detail

      • upgrade

        public static void upgrade​(org.opends.server.tools.upgrade.UpgradeContext context)
                            throws com.forgerock.opendj.cli.ClientException
        Upgrades the server from fromVersion to toVersion located in the upgrade context.
        Parameters:
        context - The context of the upgrade.
        Throws:
        com.forgerock.opendj.cli.ClientException - If an error occurred while performing the upgrade.
      • upgradeVersionNumber

        public static int upgradeVersionNumber()
        Returns the upgrade version number of the running binaries.

        This number corresponds to the fourth digit of the upgrade version as define in docs/architecture/version.md.

        Returns:
        An int representing the upgrade version number of the running binaries.