public class CliProcessor extends Object
CliProcessor parses the command line arguments.
| Constructor and Description |
|---|
CliProcessor(String[] args) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateConfig()
Generate a sample configuration file and java keystore files, then exit the program
|
InputParameters |
getInputParameters() |
boolean |
isSuccess() |
static void |
main(String[] args) |
void |
parse() |
void |
parseHelpAndGenerateConfig()
Process help and generate-config.
|
void |
parsePort(InputParameters inputParameters) |
void |
printError(String msg) |
void |
printError(Throwable throwable) |
void |
printMessage(String msg) |
void |
printUsage(int result) |
void |
process()
process the parameters
|
void |
setSuccess(boolean success) |
public CliProcessor(String[] args)
public void parse()
throws org.apache.commons.cli.ParseException,
FileNotFoundException
org.apache.commons.cli.ParseExceptionFileNotFoundExceptionpublic void parsePort(InputParameters inputParameters) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseExceptionpublic void parseHelpAndGenerateConfig()
public void process()
throws IOException
IOExceptionpublic void generateConfig()
public boolean isSuccess()
public void setSuccess(boolean success)
public void printUsage(int result)
public void printMessage(String msg)
public void printError(String msg)
public void printError(Throwable throwable)
public static void main(String[] args)
public InputParameters getInputParameters()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.