public abstract class AbstractCommandLineTool
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CMD_OPT_NAME_DEBUG_LONG |
static java.lang.String |
CMD_OPT_NAME_DEBUG_SHORT |
static java.lang.String |
CMD_OPT_NAME_HELP_LONG |
static java.lang.String |
CMD_OPT_NAME_HELP_SHORT |
static java.lang.String |
CMD_OPT_NAME_VERBOSE_LONG |
static java.lang.String |
CMD_OPT_NAME_VERBOSE_SHORT |
Constructor and Description |
---|
AbstractCommandLineTool(boolean useSystemExit) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addAdditionalOptions(org.apache.commons.cli.Options options) |
protected org.apache.commons.cli.HelpFormatter |
getHelpFormatter() |
protected abstract boolean |
performTask() |
protected abstract boolean |
readPropertiesFromCommandLine(org.apache.commons.cli.CommandLine commandLine) |
void |
start(java.lang.String[] args) |
public static final java.lang.String CMD_OPT_NAME_HELP_LONG
public static final java.lang.String CMD_OPT_NAME_HELP_SHORT
public static final java.lang.String CMD_OPT_NAME_VERBOSE_LONG
public static final java.lang.String CMD_OPT_NAME_VERBOSE_SHORT
public static final java.lang.String CMD_OPT_NAME_DEBUG_LONG
public static final java.lang.String CMD_OPT_NAME_DEBUG_SHORT
public final void start(java.lang.String[] args)
protected abstract void addAdditionalOptions(org.apache.commons.cli.Options options)
protected abstract boolean readPropertiesFromCommandLine(org.apache.commons.cli.CommandLine commandLine)
protected abstract boolean performTask()
protected org.apache.commons.cli.HelpFormatter getHelpFormatter()
Copyright 2017 Kieker Project, http://kieker-monitoring.net