public abstract class AbstractCommand extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ANSI_RED |
protected static String |
ANSI_RESET |
String |
askFormat
ASK Format option
|
boolean |
debug
Debug option
|
String |
dsAssemblerFile
Dataset assembler file option
|
boolean |
enableCompression
Enable compression option
|
boolean |
ensureAbsoluteURIs
Ensure absolute URIs option
|
String |
formPwdField
Form password field
|
String |
formUrl
Form URL option
|
String |
formUserField
Form user name field
|
String |
graphFormat
Graph Format option
|
String |
gspEndpoint
Graph store endpoint option
|
boolean |
haltAny
Halt on any option
|
boolean |
haltOnError
Halt on error option
|
boolean |
haltOnTimeout
Halt on timeout option
|
io.airlift.airline.HelpOption |
helpOption
Help option
|
boolean |
inMemoryOperations
In-memory operations mode option
|
boolean |
insecure |
long |
limit
Limit option
|
String |
logFile
Logging to file option
|
boolean |
logToConsole
Logging to console option
|
int |
maxDelay
Maximum delay between operations option
|
String |
mixFile
Mix option
|
boolean |
noCount
No count option
|
boolean |
noRandom
Disable random order option
|
int |
parallelThreads
Parallel threads option
|
String |
password
Password option
|
boolean |
preemptiveAuth
Pre-emptive authentication option
|
String |
queryEndpoint
Query endpoint option
|
boolean |
quiet
Quite mode option
|
boolean |
sampleRepeats
Sample repeats option
|
int |
sampleSize
Sample size option
|
int |
sanityCheckLevel
Sanity checking option
|
String |
selectFormat
SELECT Format option
|
String |
setupMixFile
Setup mix option
|
String |
teardownMixFile
Tear down mix option
|
int |
timeout
Timeout option
|
boolean |
trace
Trace option
|
String |
updateEndpoint
Update endpoint option
|
String |
username
User name option
|
Constructor and Description |
---|
AbstractCommand() |
Modifier and Type | Method and Description |
---|---|
protected <T extends Options> |
applyStandardOptions(T options)
Applies all the standard options provided by this abstract class
|
protected abstract int |
run()
Method that should be implemented to run the actual command
|
static void |
showUsage(Class<?> cls)
Shows a usage summary for the command
|
protected static final String ANSI_RED
protected static final String ANSI_RESET
@Inject public io.airlift.airline.HelpOption helpOption
public boolean haltOnTimeout
public boolean haltOnError
public boolean haltAny
public int timeout
public int parallelThreads
public int maxDelay
public String queryEndpoint
public String updateEndpoint
public String gspEndpoint
public boolean enableCompression
public String askFormat
public String selectFormat
public String graphFormat
public String mixFile
public int sanityCheckLevel
public boolean noRandom
public int sampleSize
public boolean sampleRepeats
public String username
public String password
public boolean preemptiveAuth
public String formUrl
public String formUserField
public String formPwdField
public boolean logToConsole
public String logFile
public boolean debug
public boolean trace
public boolean quiet
public String setupMixFile
public String teardownMixFile
public long limit
public boolean noCount
public String dsAssemblerFile
public boolean inMemoryOperations
public boolean ensureAbsoluteURIs
public boolean insecure
protected abstract int run() throws IOException
IOException
public static void showUsage(Class<?> cls)
cls
- Command classIOException
protected final <T extends Options> void applyStandardOptions(T options) throws IOException
options
- Options to populateIOException
Copyright © 2015. All rights reserved.