Package org.opends.server.tools.upgrade
Class Upgrade
java.lang.Object
org.opends.server.tools.upgrade.Upgrade
This class contains the table of upgrade tasks that need performing when upgrading from one version to another.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Upgrades the server fromfromVersion
totoVersion
located in the upgrade context.static int
Returns the upgrade version number of the running binaries.
-
Method Details
-
upgrade
public static void upgrade(org.opends.server.tools.upgrade.UpgradeContext context) throws com.forgerock.opendj.cli.ClientException Upgrades the server fromfromVersion
totoVersion
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.
-