Class UpgradeContext


  • public final class UpgradeContext
    extends Object
    Context information which is passed to upgrade tasks. This might include server configuration, etc.
    • 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 - true if ignore error mode is activated.
        Returns:
        This upgrade context.
      • setAcceptLicenseMode

        public UpgradeContext setAcceptLicenseMode​(boolean isAcceptLicenseMode)
        Sets the accept license mode.
        Parameters:
        isAcceptLicenseMode - true if the accept license mode is activated.
        Returns:
        This upgrade context.
      • setInteractiveMode

        public UpgradeContext setInteractiveMode​(boolean isInteractiveMode)
        Sets the interactive mode.
        Parameters:
        isInteractiveMode - true if the interactive mode is activated.
        Returns:
        This upgrade context.
      • setForceUpgradeMode

        public UpgradeContext setForceUpgradeMode​(boolean isForceUpgradeMode)
        Sets the force upgrade mode.
        Parameters:
        isForceUpgradeMode - true if the force upgrade mode is activated.
        Returns:
        This upgrade context.