Package dev.roanh.gmark.cli
Class Main
java.lang.Object
dev.roanh.gmark.cli.Main
Main class of the command line version of
the application, responsible for command handling.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final class
Progress listener that report progress to standard out at 10% intervals. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
handleConfigurationInput
(org.apache.commons.cli.CommandLine cli) Handles input when a complete configuration file is provided.private static void
handleInput
(org.apache.commons.cli.CommandLine cli) Handles the input arguments.private static void
handleWorkloadInput
(org.apache.commons.cli.CommandLine cli) Handles input when a generated workload file is provided.static void
Main entry point for the CLI version of the application.
-
Field Details
-
VERSION
The current version of gMark. -
options
public static final org.apache.commons.cli.Options optionsThe command line options.
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
Main entry point for the CLI version of the application.- Parameters:
args
- The passed command line arguments.
-
handleInput
private static void handleInput(org.apache.commons.cli.CommandLine cli) Handles the input arguments.- Parameters:
cli
- The command line argument.
-
handleConfigurationInput
private static void handleConfigurationInput(org.apache.commons.cli.CommandLine cli) Handles input when a complete configuration file is provided.- Parameters:
cli
- The command line arguments.
-
handleWorkloadInput
private static void handleWorkloadInput(org.apache.commons.cli.CommandLine cli) Handles input when a generated workload file is provided.- Parameters:
cli
- The command line arguments.
-