Kieker 1.12

kieker.tools
Class AbstractCommandLineTool

java.lang.Object
  extended by kieker.tools.AbstractCommandLineTool
Direct Known Subclasses:
FilesystemLogReplayerStarter, KaxRun, KaxViz, LoggingTimestampConverterTool, ResourceMonitor, TraceAnalysisTool

public abstract class AbstractCommandLineTool
extends java.lang.Object

Since:
1.10
Author:
Nils Christian Ehmke

Field Summary
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 Summary
AbstractCommandLineTool(boolean useSystemExit)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_OPT_NAME_HELP_LONG

public static final java.lang.String CMD_OPT_NAME_HELP_LONG
See Also:
Constant Field Values

CMD_OPT_NAME_HELP_SHORT

public static final java.lang.String CMD_OPT_NAME_HELP_SHORT
See Also:
Constant Field Values

CMD_OPT_NAME_VERBOSE_LONG

public static final java.lang.String CMD_OPT_NAME_VERBOSE_LONG
See Also:
Constant Field Values

CMD_OPT_NAME_VERBOSE_SHORT

public static final java.lang.String CMD_OPT_NAME_VERBOSE_SHORT
See Also:
Constant Field Values

CMD_OPT_NAME_DEBUG_LONG

public static final java.lang.String CMD_OPT_NAME_DEBUG_LONG
See Also:
Constant Field Values

CMD_OPT_NAME_DEBUG_SHORT

public static final java.lang.String CMD_OPT_NAME_DEBUG_SHORT
See Also:
Constant Field Values
Constructor Detail

AbstractCommandLineTool

public AbstractCommandLineTool(boolean useSystemExit)
Method Detail

start

public final void start(java.lang.String[] args)

addAdditionalOptions

protected abstract void addAdditionalOptions(org.apache.commons.cli.Options options)

readPropertiesFromCommandLine

protected abstract boolean readPropertiesFromCommandLine(org.apache.commons.cli.CommandLine commandLine)

performTask

protected abstract boolean performTask()

getHelpFormatter

protected org.apache.commons.cli.HelpFormatter getHelpFormatter()

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net