public class CommandLineOptions extends Object
DrillYarnClient -h|--help | start | stop | status | resize [+|-]n
This is a do-it-yourself parser because the command line parser used by Drill does not accept parameters (arguments) without a dash, and does not accept arguments (such as resize -3) with a dash.
Modifier and Type | Class and Description |
---|---|
static class |
CommandLineOptions.Command |
Modifier and Type | Field and Description |
---|---|
String |
appId |
boolean |
dryRun |
boolean |
force |
String |
resizePrefix |
int |
resizeValue |
boolean |
verbose |
Constructor and Description |
---|
CommandLineOptions() |
Modifier and Type | Method and Description |
---|---|
CommandLineOptions.Command |
getCommand() |
String |
getResizePrefix() |
int |
getResizeValue() |
boolean |
parse(String[] args)
Parse the command line.
|
void |
usage() |
public String appId
public boolean dryRun
public String resizePrefix
public int resizeValue
public boolean verbose
public boolean force
public boolean parse(String[] args)
public CommandLineOptions.Command getCommand()
public String getResizePrefix()
public int getResizeValue()
public void usage()
Copyright © 1970 The Apache Software Foundation. All rights reserved.