Package org.opends.quicksetup.installer
Class SetupLauncher
- java.lang.Object
-
- org.opends.quicksetup.Launcher
-
- org.opends.quicksetup.installer.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 Summary
Constructors Constructor Description SetupLauncher(String[] args)Creates a launcher.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CliApplicationcreateCliApplication()Creates a CLI application that will be run if the launcher needs to launch a CLI application.ArgumentParsergetArgumentParser()Gets an argument parser appropriate for this CLI launcher.protected org.forgerock.i18n.LocalizableMessagegetFrameTitle()Gets the frame title of the GUI application that will be used in some operating systems.protected voidguiLaunchFailed()Called if launching of the GUI failed.protected voidinitializeParser()Initialize the contents of the argument parser.protected booleanisCli()Indicates whether the launcher will launch a command line versus a graphical application based on the contents of the arguments passed into the constructor.voidlaunch()The main method which is called by the command lines.static voidmain(String[] args)The main method which is called by the setup command lines.protected voidwillLaunchGui()Called before the launcher launches the GUI.-
Methods inherited from class org.opends.quicksetup.Launcher
getArguments, getTempLogFile, hasTempLogFile, isQuiet, launchGui, shouldPrintUsage, shouldPrintVersion
-
-
-
-
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:LauncherThe main method which is called by the command lines.
-
getArgumentParser
public ArgumentParser getArgumentParser()
Description copied from class:LauncherGets an argument parser appropriate for this CLI launcher.- Specified by:
getArgumentParserin classLauncher- Returns:
- ArgumentParser for parsing args
-
guiLaunchFailed
protected void guiLaunchFailed()
Description copied from class:LauncherCalled if launching of the GUI failed.- Specified by:
guiLaunchFailedin classLauncher
-
willLaunchGui
protected void willLaunchGui()
Description copied from class:LauncherCalled 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:
willLaunchGuiin classLauncher
-
getFrameTitle
protected org.forgerock.i18n.LocalizableMessage getFrameTitle()
Description copied from class:LauncherGets the frame title of the GUI application that will be used in some operating systems.- Specified by:
getFrameTitlein classLauncher- Returns:
- internationalized String representing the frame title
-
createCliApplication
protected CliApplication createCliApplication()
Description copied from class:LauncherCreates a CLI application that will be run if the launcher needs to launch a CLI application.- Specified by:
createCliApplicationin classLauncher- Returns:
- CliApplication that will be run
-
isCli
protected boolean isCli()
Description copied from class:LauncherIndicates whether the launcher will launch a command line versus a graphical application based on the contents of the arguments passed into the constructor.
-
-