Class UninstallLauncher


  • public class UninstallLauncher
    extends Launcher
    This class is called by the uninstall command lines to launch the uninstall of the Directory Server. It just checks the command line arguments and the environment and determines whether the graphical or the command line based uninstall much be launched.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String LOG_FILE_PREFIX
      Prefix for log files.
      • Fields inherited from class org.opends.quicksetup.Launcher

        args
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected CliApplication createCliApplication()
      Creates a CLI application that will be run if the launcher needs to launch a CLI application.
      ArgumentParser getArgumentParser()
      Gets an argument parser appropriate for this CLI launcher.
      protected org.forgerock.i18n.LocalizableMessage getFrameTitle()
      Gets the frame title of the GUI application that will be used in some operating systems.
      protected void guiLaunchFailed()
      Called if launching of the GUI failed.
      protected void initializeParser()
      Initialize the contents of the argument parser.
      protected boolean isCli()
      Indicates whether the launcher will launch a command line versus a graphical application based on the contents of the arguments passed into the constructor.
      protected boolean isNoPrompt()
      Indicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.
      protected boolean isQuiet()
      Indicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.
      void launch()
      The main method which is called by the command lines.
      static void main​(String[] args)
      The main method which is called by the uninstall command lines.
      protected boolean shouldPrintUsage()
      Indicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.
      protected boolean shouldPrintVersion()
      Indicates whether the launcher should print a version statement based on the content of the arguments passed into the constructor.
      protected void willLaunchGui()
      Called before the launcher launches the GUI.
    • Constructor Detail

      • UninstallLauncher

        public UninstallLauncher​(String[] args)
        Creates a launcher.
        Parameters:
        args - the arguments passed by the command lines.
    • Method Detail

      • main

        public static void main​(String[] args)
        The main method which is called by the uninstall command lines.
        Parameters:
        args - the arguments passed by the command lines. In the case we want to launch the cli setup they are basically the arguments that we will pass to the org.opends.server.tools.InstallDS class.
      • launch

        public void launch()
        Description copied from class: Launcher
        The main method which is called by the command lines.
        Overrides:
        launch in class Launcher
      • initializeParser

        protected void initializeParser()
        Initialize the contents of the argument parser.
      • guiLaunchFailed

        protected void guiLaunchFailed()
        Description copied from class: Launcher
        Called if launching of the GUI failed.
        Specified by:
        guiLaunchFailed in class Launcher
      • getArgumentParser

        public ArgumentParser getArgumentParser()
        Description copied from class: Launcher
        Gets an argument parser appropriate for this CLI launcher.
        Specified by:
        getArgumentParser in class Launcher
        Returns:
        ArgumentParser for parsing args
      • willLaunchGui

        protected void willLaunchGui()
        Description copied from class: Launcher
        Called before the launcher launches the GUI. Here subclasses can do any application specific things like set system properties of print status messages that need to be done before the GUI launches.
        Specified by:
        willLaunchGui in class Launcher
      • createCliApplication

        protected CliApplication createCliApplication()
        Description copied from class: Launcher
        Creates a CLI application that will be run if the launcher needs to launch a CLI application.
        Specified by:
        createCliApplication in class Launcher
        Returns:
        CliApplication that will be run
      • getFrameTitle

        protected org.forgerock.i18n.LocalizableMessage getFrameTitle()
        Description copied from class: Launcher
        Gets the frame title of the GUI application that will be used in some operating systems.
        Specified by:
        getFrameTitle in class Launcher
        Returns:
        internationalized String representing the frame title
      • shouldPrintUsage

        protected boolean shouldPrintUsage()
        Description copied from class: Launcher
        Indicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.
        Overrides:
        shouldPrintUsage in class Launcher
        Returns:
        boolean where true indicates usage should be printed
      • isQuiet

        protected boolean isQuiet()
        Description copied from class: Launcher
        Indicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.
        Overrides:
        isQuiet in class Launcher
        Returns:
        boolean where true indicates usage should be printed
      • isNoPrompt

        protected boolean isNoPrompt()
        Indicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.
        Returns:
        boolean where true indicates usage should be printed
      • shouldPrintVersion

        protected boolean shouldPrintVersion()
        Description copied from class: Launcher
        Indicates whether the launcher should print a version statement based on the content of the arguments passed into the constructor.
        Overrides:
        shouldPrintVersion in class Launcher
        Returns:
        boolean where true indicates version should be printed
      • isCli

        protected boolean isCli()
        Description copied from class: Launcher
        Indicates whether the launcher will launch a command line versus a graphical application based on the contents of the arguments passed into the constructor.
        Overrides:
        isCli in class Launcher
        Returns:
        boolean where true indicates that a CLI application should be launched