|
Carrot2 Framework
API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.dcs.CliOptions
public final class CliOptions
Shared methods for adding and parsing command line Options.
| Field Summary | |
|---|---|
org.apache.commons.cli.Option |
benchmarkAlgorithms
|
org.apache.commons.cli.Option |
benchmarkCacheInput
|
org.apache.commons.cli.Option |
benchmarkInputs
|
org.apache.commons.cli.Option |
benchmarkQueries
|
org.apache.commons.cli.Option |
benchmarkResults
|
org.apache.commons.cli.Option |
benchmarkRounds
|
org.apache.commons.cli.Option |
benchmarkWarmupRounds
|
org.apache.commons.cli.Option |
benchmarkXMLFolder
|
org.apache.commons.cli.Option |
clustersOnly
|
org.apache.commons.cli.Option |
descriptorsDir
|
org.apache.commons.cli.Option |
outputFolder
|
org.apache.commons.cli.Option |
outputFormat
|
org.apache.commons.cli.Option |
port
|
org.apache.commons.cli.Option |
processName
|
org.apache.commons.cli.Option |
verbose
|
| Constructor Summary | |
|---|---|
CliOptions()
|
|
| Method Summary | |
|---|---|
static void |
addAll(org.apache.commons.cli.Options options,
Object[] array)
Adds all Options and OptionGroups from array to
option. |
static Object |
getOption(org.apache.commons.cli.CommandLine options,
org.apache.commons.cli.Option option,
Object defaultValue)
Return the option's value or, if undefined, the default value. |
String[] |
parseBenchmarkAlgorithmsOption(org.apache.commons.cli.CommandLine options,
ControllerContext context)
|
int[] |
parseBenchmarkResultsOption(org.apache.commons.cli.CommandLine options)
|
String |
parseOutputFormat(org.apache.commons.cli.CommandLine options)
Parses the content of outputFormat option and throws a
ConfigurationException if the output format is not valid. |
String |
parseProcessIdOption(org.apache.commons.cli.CommandLine options,
ControllerContext context)
Parses the content of processName option and throws a
ConfigurationException if the process is not present in the
ControllerContext or if it is null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final org.apache.commons.cli.Option processName
public final org.apache.commons.cli.Option descriptorsDir
public final org.apache.commons.cli.Option outputFolder
public final org.apache.commons.cli.Option verbose
public final org.apache.commons.cli.Option clustersOnly
public final org.apache.commons.cli.Option outputFormat
public final org.apache.commons.cli.Option port
public final org.apache.commons.cli.Option benchmarkInputs
public final org.apache.commons.cli.Option benchmarkAlgorithms
public final org.apache.commons.cli.Option benchmarkResults
public final org.apache.commons.cli.Option benchmarkQueries
public final org.apache.commons.cli.Option benchmarkRounds
public final org.apache.commons.cli.Option benchmarkWarmupRounds
public final org.apache.commons.cli.Option benchmarkCacheInput
public final org.apache.commons.cli.Option benchmarkXMLFolder
| Constructor Detail |
|---|
public CliOptions()
| Method Detail |
|---|
public static Object getOption(org.apache.commons.cli.CommandLine options,
org.apache.commons.cli.Option option,
Object defaultValue)
public static void addAll(org.apache.commons.cli.Options options,
Object[] array)
Options and OptionGroups from array to
option.
public String parseProcessIdOption(org.apache.commons.cli.CommandLine options,
ControllerContext context)
throws ConfigurationException
processName option and throws a
ConfigurationException if the process is not present in the
ControllerContext or if it is null.
ConfigurationException
public String parseOutputFormat(org.apache.commons.cli.CommandLine options)
throws ConfigurationException
outputFormat option and throws a
ConfigurationException if the output format is not valid.
ConfigurationException
public String[] parseBenchmarkAlgorithmsOption(org.apache.commons.cli.CommandLine options,
ControllerContext context)
throws ConfigurationException
ConfigurationException
public int[] parseBenchmarkResultsOption(org.apache.commons.cli.CommandLine options)
throws ConfigurationException
ConfigurationException
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||