Class SetupLauncher


  • public class SetupLauncher
    extends Launcher
    This class is called by the setup command line to launch the setup of the Directory Server. It just checks the command line arguments and the environment and determines whether the graphical or the command line based setup much be launched.
    • Constructor Detail

      • SetupLauncher

        public SetupLauncher​(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 setup 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.
      • initializeParser

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

        public void launch()
        Description copied from class: Launcher
        The main method which is called by the command lines.
        Overrides:
        launch 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
      • guiLaunchFailed

        protected void guiLaunchFailed()
        Description copied from class: Launcher
        Called if launching of the GUI failed.
        Specified by:
        guiLaunchFailed in class Launcher
      • 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
      • 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
      • 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
      • 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