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) |
addArgument, addArgument, addDefaultArgument, addLdapConnectionArgument, displayMessageAndUsageReference, getArgumentForLongID, getArgumentList, getBindPassword, getDocSubcommandsDescriptionSupplement, getDocToolDescriptionSupplement, getHelpUsageReference, getOptionsRefSect1, getShortToolDescription, getTrailingArguments, getUsage, getUsageMessage, isUsageArgumentPresent, isVersionArgumentPresent, parseArguments, parseArguments, setDocSubcommandsDescriptionSupplement, setDocToolDescriptionSupplement, setFilePropertiesArgument, setNoPropertiesFileArgument, setShortToolDescription, setUsageArgument, setUsageArgument, setUsageOrVersionDisplayed, setVersionHandler, usageOrVersionDisplayedpublic 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
parseArguments in class com.forgerock.opendj.cli.ArgumentParsercom.forgerock.opendj.cli.ArgumentExceptionpublic 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-2015 ForgeRock AS. All Rights Reserved.