Search in sources :

Example 1 with CliSpec

use of org.apache.bookkeeper.tools.framework.CliSpec in project bookkeeper by apache.

the class BKPerf method main.

@SuppressWarnings("unchecked")
public static void main(String[] args) {
    CliSpec.Builder<BKFlags> specBuilder = CliSpec.<BKFlags>newBuilder().withName(NAME).withUsage(NAME + " [flags] [command group] [commands]").withDescription(NAME + " evaluates the performance of Apache BookKeeper clusters").withFlags(new BKFlags()).withConsole(System.out).addCommand(new DlogPerfCommandGroup()).addCommand(new TablePerfCommandGroup()).addCommand(new JournalPerfCommandGroup());
    CliSpec<BKFlags> spec = specBuilder.build();
    int retCode = Cli.runCli(spec, args);
    Runtime.getRuntime().exit(retCode);
}
Also used : CliSpec(org.apache.bookkeeper.tools.framework.CliSpec) BKFlags(org.apache.bookkeeper.tools.common.BKFlags)

Aggregations

BKFlags (org.apache.bookkeeper.tools.common.BKFlags)1 CliSpec (org.apache.bookkeeper.tools.framework.CliSpec)1