public class UninstallLauncher extends Launcher
Modifier and Type | Field and Description |
---|---|
static String |
LOG_FILE_PREFIX
Prefix for log files.
|
static String |
LOG_FILE_SUFFIX
Suffix for log files.
|
Constructor and Description |
---|
UninstallLauncher(String[] args)
Creates a launcher.
|
Modifier and Type | Method and Description |
---|---|
protected CliApplication |
createCliApplication()
Creates a CLI application that will be run if the
launcher needs to launch a CLI application.
|
com.forgerock.opendj.cli.ArgumentParser |
getArgumentParser()
Gets an argument parser appropriate for this CLI launcher.
|
protected LocalizableMessage |
getFrameTitle()
Gets the frame title of the GUI application that will be used
in some operating systems.
|
protected void |
guiLaunchFailed(String logFilePath)
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 or not the launcher should print a usage
statement based on the content of the arguments passed into
the constructor.
|
protected boolean |
isQuiet()
Indicates whether or not 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 or not the launcher should print a usage
statement based on the content of the arguments passed into
the constructor.
|
protected boolean |
shouldPrintVersion()
Indicates whether or not 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.
|
getArguments, launchCli, launchGui, printUsage, printUsage, printVersion
public static final String LOG_FILE_PREFIX
public static final String LOG_FILE_SUFFIX
public UninstallLauncher(String[] args)
args
- the arguments passed by the command lines.public static void main(String[] args)
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.public void launch()
protected void initializeParser()
protected void guiLaunchFailed(String logFilePath)
guiLaunchFailed
in class Launcher
logFilePath
- the log file containing more information about why
the launch failed.public com.forgerock.opendj.cli.ArgumentParser getArgumentParser()
getArgumentParser
in class Launcher
protected void willLaunchGui()
willLaunchGui
in class Launcher
protected CliApplication createCliApplication()
createCliApplication
in class Launcher
protected LocalizableMessage getFrameTitle()
getFrameTitle
in class Launcher
protected boolean shouldPrintUsage()
shouldPrintUsage
in class Launcher
protected boolean isQuiet()
protected boolean isNoPrompt()
protected boolean shouldPrintVersion()
shouldPrintVersion
in class Launcher
protected boolean isCli()
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.