Package org.opends.server.tools.upgrade
Class UpgradeContext
- java.lang.Object
-
- org.opends.server.tools.upgrade.UpgradeContext
-
public final class UpgradeContext extends Object
Context information which is passed to upgrade tasks. This might include server configuration, etc.
-
-
Constructor Summary
Constructors Constructor Description UpgradeContext(CallbackHandler handler)Creates a new upgrade context for upgrading from the instance version (as obtained from config/buildinfo) to the binary version.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpgradeContextsetAcceptLicenseMode(boolean isAcceptLicenseMode)Sets the accept license mode.UpgradeContextsetForceUpgradeMode(boolean isForceUpgradeMode)Sets the force upgrade mode.UpgradeContextsetIgnoreErrorsMode(boolean isIgnoreErrorsMode)Sets the ignore errors mode.UpgradeContextsetInteractiveMode(boolean isInteractiveMode)Sets the interactive mode.StringtoString()
-
-
-
Constructor Detail
-
UpgradeContext
public UpgradeContext(CallbackHandler handler) throws InitializationException
Creates a new upgrade context for upgrading from the instance version (as obtained from config/buildinfo) to the binary version.- Parameters:
handler- The call-back handler for interacting with the upgrade application.- Throws:
InitializationException- If an error occurred while reading or parsing the version.
-
-
Method Detail
-
setIgnoreErrorsMode
public UpgradeContext setIgnoreErrorsMode(boolean isIgnoreErrorsMode)
Sets the ignore errors mode.- Parameters:
isIgnoreErrorsMode-trueif ignore error mode is activated.- Returns:
- This upgrade context.
-
setAcceptLicenseMode
public UpgradeContext setAcceptLicenseMode(boolean isAcceptLicenseMode)
Sets the accept license mode.- Parameters:
isAcceptLicenseMode-trueif the accept license mode is activated.- Returns:
- This upgrade context.
-
setInteractiveMode
public UpgradeContext setInteractiveMode(boolean isInteractiveMode)
Sets the interactive mode.- Parameters:
isInteractiveMode-trueif the interactive mode is activated.- Returns:
- This upgrade context.
-
setForceUpgradeMode
public UpgradeContext setForceUpgradeMode(boolean isForceUpgradeMode)
Sets the force upgrade mode.- Parameters:
isForceUpgradeMode-trueif the force upgrade mode is activated.- Returns:
- This upgrade context.
-
-