public class Options extends Options
Options.Flag
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
cmd
The worker shell command to run.
|
protected boolean |
interactiveShell
Whether to have an interactive shell.
|
java.lang.String |
storeName
The name of the store.
|
int |
threadPool |
int |
timeout |
bootcp, codeCache, DEBUG_NO_SSL, filsigcp, outputToLocalFS, sigcp
Constructor and Description |
---|
Options(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
protected int |
defaultHandler(java.lang.String[] args,
int index)
Handles an argument that doesn't match any known flag.
|
protected void |
populateFlags(java.util.Set<Options.Flag> flags) |
static void |
printUsage(java.io.PrintStream out,
boolean showSecretMenu) |
void |
setDefaultValues() |
void |
usageHeader(java.io.PrintStream out)
Prints a header for the usage message to the given output.
|
void |
validateOptions() |
parseCommandLine, usage
public java.lang.String storeName
public int threadPool
public int timeout
public java.lang.String[] cmd
protected boolean interactiveShell
public Options(java.lang.String[] args) throws UsageError
UsageError
public static void printUsage(java.io.PrintStream out, boolean showSecretMenu)
protected void populateFlags(java.util.Set<Options.Flag> flags)
populateFlags
in class Options
public void setDefaultValues()
setDefaultValues
in class Options
public void validateOptions() throws UsageError
validateOptions
in class Options
UsageError
public void usageHeader(java.io.PrintStream out)
Options
usageHeader
in class Options
protected int defaultHandler(java.lang.String[] args, int index)
Options
defaultHandler
in class Options
args
- Arguments from the command line.index
- The index of the argument following the usage flag.