public class InstallDSArgumentParser extends com.forgerock.opendj.cli.ArgumentParser
Constructor and Description |
---|
InstallDSArgumentParser(String mainClassName)
The default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
int |
getConnectTimeout()
Returns the timeout to be used to connect in milliseconds.
|
String |
getDirectoryManagerPassword()
Returns the directory manager password provided by the user.
|
String |
getKeyStorePassword()
Returns the key store password provided by the user.
|
void |
initializeArguments()
Initializes the arguments without parsing them.
|
boolean |
isCli()
Returns whether the command was launched in CLI mode or not.
|
void |
parseInstallDsArguments(String[] args)
Parse install ds command line arguments.
|
addArgument, addArgument, addDefaultArgument, addLdapConnectionArgument, displayMessageAndUsageReference, getArgumentForLongId, getArgumentForShortId, getArguments, getBindPassword, getDocSubcommandsDescriptionSupplement, getDocToolDescriptionSupplement, getShortToolDescription, getTrailingArguments, getUsage, isUsageArgumentPresent, isVersionArgumentPresent, parseArguments, parseArguments, parseArguments, replaceArgument, setDocSubcommandsDescriptionSupplement, setDocToolDescriptionSupplement, setShortToolDescription, setUsageArgument, setUsageOrVersionDisplayed, setVersionHandler, usageOrVersionDisplayed
public InstallDSArgumentParser(String mainClassName)
mainClassName
- the class name of the main class for the command-line
that is being used.public void initializeArguments() throws com.forgerock.opendj.cli.ArgumentException
com.forgerock.opendj.cli.ArgumentException
- if there was an error creating or adding the
arguments. If this occurs is likely to be a bug.public boolean isCli()
true
if the command was launched to use CLI mode and
false
otherwise.public void parseInstallDsArguments(String[] args) throws com.forgerock.opendj.cli.ArgumentException
args
- The command line argumentscom.forgerock.opendj.cli.ArgumentException
- If an error occurred during argument parsingpublic String getDirectoryManagerPassword()
public String getKeyStorePassword()
public int getConnectTimeout() throws IllegalStateException
0
if there is no timeout.IllegalStateException
- if the method is called before
parsing the arguments.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.