public class CommandLineOptions extends Object implements Options
| Constructor and Description |
|---|
CommandLineOptions(String... argv)
Parses the given command line.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Mode> |
getBenchModes()
Benchmarks modes to execute.
|
List<String> |
getExcludes()
Which benchmarks to omit?
|
Optional<Integer> |
getForkCount()
Fork count
|
List<String> |
getIncludes()
Which benchmarks to execute?
|
Optional<String> |
getJvm()
JVM executable to use for forks
|
Optional<Collection<String>> |
getJvmArgs()
JVM parameters to use with forks
|
Optional<Collection<String>> |
getJvmArgsAppend()
JVM parameters to use with forks (these options will be appended
after any other JVM option)
|
Optional<Collection<String>> |
getJvmArgsPrepend()
JVM parameters to use with forks (these options will be prepended
before any other JVM option)
|
Optional<Integer> |
getMeasurementBatchSize()
Number of batch size for measurement
|
Optional<Integer> |
getMeasurementIterations()
Number of measurement iterations
|
Optional<TimeValue> |
getMeasurementTime()
The duration for measurement iterations
|
Optional<Integer> |
getOperationsPerInvocation()
Operations per invocation.
|
Optional<String> |
getOutput()
Which file to use for dumping the output
|
Optional<Collection<String>> |
getParameter(String name)
The overridden value of the parameter.
|
List<ProfilerConfig> |
getProfilers()
Profilers to use for the run.
|
Optional<String> |
getResult()
Which file to use for dumping the result
|
Optional<ResultFormatType> |
getResultFormat()
Result format to use
|
Optional<int[]> |
getThreadGroups()
Thread subgroups distribution.
|
Optional<Integer> |
getThreads()
Number of threads to run
|
Optional<TimeValue> |
getTimeout()
Timeout: how long to wait for an iteration to complete.
|
Optional<TimeUnit> |
getTimeUnit()
Timeunit to use in units.
|
Optional<Integer> |
getWarmupBatchSize()
Number of batch size for warmup
|
Optional<Integer> |
getWarmupForkCount()
Number of initial forks to ignore the results for
|
List<String> |
getWarmupIncludes()
Which benchmarks to warmup before doing the run.
|
Optional<Integer> |
getWarmupIterations()
Number of warmup iterations
|
Optional<WarmupMode> |
getWarmupMode()
Warmup mode.
|
Optional<TimeValue> |
getWarmupTime()
The duration for warmup iterations
|
void |
listProfilers() |
void |
listResultFormats() |
Optional<Boolean> |
shouldDoGC()
Should force GC between iterations?
|
Optional<Boolean> |
shouldFailOnError()
Should harness terminate on first error encountered?
|
boolean |
shouldHelp() |
boolean |
shouldList() |
boolean |
shouldListProfilers() |
boolean |
shouldListResultFormats() |
Optional<Boolean> |
shouldSyncIterations()
Should synchronize iterations?
|
void |
showHelp() |
Optional<Collection<String>> |
treatQuoted(joptsimple.OptionSet set,
joptsimple.OptionSpec<String> spec) |
Optional<VerboseMode> |
verbosity()
How verbose should we be?
|
public CommandLineOptions(String... argv) throws CommandLineOptionException
argv - argument listCommandLineOptionException - if some options are misspelledpublic Optional<Collection<String>> treatQuoted(joptsimple.OptionSet set, joptsimple.OptionSpec<String> spec)
public void showHelp()
throws IOException
IOExceptionpublic void listProfilers()
public void listResultFormats()
public boolean shouldList()
public boolean shouldListResultFormats()
public boolean shouldHelp()
public boolean shouldListProfilers()
public Optional<WarmupMode> getWarmupMode()
OptionsgetWarmupMode in interface OptionsWarmupModepublic List<String> getIncludes()
OptionsgetIncludes in interface Optionspublic List<String> getExcludes()
OptionsgetExcludes in interface Optionspublic List<String> getWarmupIncludes()
OptionsgetWarmupIncludes in interface Optionspublic Optional<String> getJvm()
Optionspublic Optional<Collection<String>> getJvmArgs()
OptionsgetJvmArgs in interface OptionsForkpublic Optional<Collection<String>> getJvmArgsAppend()
OptionsgetJvmArgsAppend in interface OptionsForkpublic Optional<Collection<String>> getJvmArgsPrepend()
OptionsgetJvmArgsPrepend in interface OptionsForkpublic Optional<Collection<String>> getParameter(String name)
OptionsgetParameter in interface Optionsname - parameter nameParampublic Optional<Integer> getForkCount()
OptionsgetForkCount in interface OptionsForkpublic Optional<Integer> getWarmupForkCount()
OptionsgetWarmupForkCount in interface OptionsForkpublic Optional<String> getOutput()
Optionspublic Optional<ResultFormatType> getResultFormat()
OptionsgetResultFormat in interface Optionspublic Optional<String> getResult()
Optionspublic Optional<Integer> getMeasurementIterations()
OptionsgetMeasurementIterations in interface OptionsMeasurementpublic Optional<Integer> getMeasurementBatchSize()
OptionsgetMeasurementBatchSize in interface OptionsMeasurementpublic Optional<TimeValue> getMeasurementTime()
OptionsgetMeasurementTime in interface OptionsMeasurementpublic Optional<TimeValue> getWarmupTime()
OptionsgetWarmupTime in interface OptionsWarmuppublic Optional<Integer> getWarmupIterations()
OptionsgetWarmupIterations in interface OptionsWarmuppublic Optional<Integer> getWarmupBatchSize()
OptionsgetWarmupBatchSize in interface OptionsWarmuppublic Optional<Integer> getThreads()
OptionsgetThreads in interface OptionsThreadspublic Optional<int[]> getThreadGroups()
OptionsgetThreadGroups in interface OptionsGroup,
GroupThreadspublic Optional<Boolean> shouldDoGC()
OptionsshouldDoGC in interface Optionspublic Optional<Boolean> shouldSyncIterations()
OptionsshouldSyncIterations in interface Optionspublic Optional<VerboseMode> verbosity()
Optionspublic Optional<TimeUnit> getTimeUnit()
OptionsgetTimeUnit in interface OptionsOutputTimeUnitpublic Optional<Integer> getOperationsPerInvocation()
OptionsgetOperationsPerInvocation in interface OptionsOperationsPerInvocationpublic Optional<Boolean> shouldFailOnError()
OptionsshouldFailOnError in interface Optionspublic List<ProfilerConfig> getProfilers()
OptionsgetProfilers in interface Optionspublic Collection<Mode> getBenchModes()
OptionsgetBenchModes in interface OptionsBenchmarkModepublic Optional<TimeValue> getTimeout()
OptionsgetTimeout in interface OptionsCopyright © 2012-2015 Oracle. All Rights Reserved.