Package org.opends.guitools.uninstaller
Class UninstallLauncher
- java.lang.Object
-
- org.opends.quicksetup.Launcher
-
- org.opends.guitools.uninstaller.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 StringLOG_FILE_PREFIXPrefix for log files.
-
Constructor Summary
Constructors Constructor Description UninstallLauncher(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.protected booleanisNoPrompt()Indicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.protected booleanisQuiet()Indicates whether the launcher should print a usage statement based on the content 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 uninstall command lines.protected booleanshouldPrintUsage()Indicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.protected booleanshouldPrintVersion()Indicates whether the launcher should print a version statement based on the content of the arguments passed into the constructor.protected voidwillLaunchGui()Called before the launcher launches the GUI.-
Methods inherited from class org.opends.quicksetup.Launcher
getArguments, getTempLogFile, hasTempLogFile, launchGui
-
-
-
-
Field Detail
-
LOG_FILE_PREFIX
public static final String LOG_FILE_PREFIX
Prefix for log files.- See Also:
- Constant Field Values
-
-
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:LauncherThe main method which is called by the command lines.
-
initializeParser
protected void initializeParser()
Initialize the contents of the argument parser.
-
guiLaunchFailed
protected void guiLaunchFailed()
Description copied from class:LauncherCalled if launching of the GUI failed.- Specified by:
guiLaunchFailedin classLauncher
-
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
-
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
-
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
-
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
-
shouldPrintUsage
protected boolean shouldPrintUsage()
Description copied from class:LauncherIndicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.- Overrides:
shouldPrintUsagein classLauncher- Returns:
- boolean where true indicates usage should be printed
-
isQuiet
protected boolean isQuiet()
Description copied from class:LauncherIndicates whether the launcher should print a usage statement based on the content of the arguments passed into the constructor.
-
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:LauncherIndicates whether the launcher should print a version statement based on the content of the arguments passed into the constructor.- Overrides:
shouldPrintVersionin classLauncher- Returns:
- boolean where true indicates version should be printed
-
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.
-
-