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 |
parseArguments(String[] args)
Parses the provided set of arguments and updates the information
associated with this parser accordingly.
|
addArgument, addArgument, addDefaultArgument, addLdapConnectionArgument, displayMessageAndUsageReference, getArgumentForLongID, getArgumentList, getBindPassword, getDocSubcommandsDescriptionSupplement, getDocToolDescriptionSupplement, getHelpUsageReference, getOptionsRefSect1, getShortToolDescription, getTrailingArguments, getUsage, isUsageArgumentPresent, isVersionArgumentPresent, parseArguments, parseArguments, replaceArgument, setDocSubcommandsDescriptionSupplement, setDocToolDescriptionSupplement, setFilePropertiesArgument, setNoPropertiesFileArgument, setShortToolDescription, setUsageArgument, 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 parseArguments(String[] args) throws com.forgerock.opendj.cli.ArgumentException
com.forgerock.opendj.cli.ArgumentParser
parseArguments
in class com.forgerock.opendj.cli.ArgumentParser
args
- The raw set of arguments to parse.com.forgerock.opendj.cli.ArgumentException
- If a problem was encountered while parsing the provided
arguments.public 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.