Examples of acceptsAll()


Examples of joptsimple.OptionParser.acceptsAll()

    private final boolean doWrites;

    public static void main(String[] args) throws Exception {
        OptionParser parser = new OptionParser();
        parser.accepts("help", "print usage information");
        parser.acceptsAll(asList("r", "reads"), "Enable reads.");
        parser.acceptsAll(asList("w", "writes"), "Enable writes.");
        parser.acceptsAll(asList("d", "deletes"), "Enable deletes.");
        parser.accepts("table", "Table name").withRequiredArg();
        parser.accepts("db", "Database name").withRequiredArg();
        parser.acceptsAll(asList("u", "user"), "DB username.").withRequiredArg();
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

    public static void main(String[] args) throws Exception {
        OptionParser parser = new OptionParser();
        parser.accepts("help", "print usage information");
        parser.acceptsAll(asList("r", "reads"), "Enable reads.");
        parser.acceptsAll(asList("w", "writes"), "Enable writes.");
        parser.acceptsAll(asList("d", "deletes"), "Enable deletes.");
        parser.accepts("table", "Table name").withRequiredArg();
        parser.accepts("db", "Database name").withRequiredArg();
        parser.acceptsAll(asList("u", "user"), "DB username.").withRequiredArg();
        parser.acceptsAll(asList("P", "password"), "DB password").withRequiredArg();
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

    public static void main(String[] args) throws Exception {
        OptionParser parser = new OptionParser();
        parser.accepts("help", "print usage information");
        parser.acceptsAll(asList("r", "reads"), "Enable reads.");
        parser.acceptsAll(asList("w", "writes"), "Enable writes.");
        parser.acceptsAll(asList("d", "deletes"), "Enable deletes.");
        parser.accepts("table", "Table name").withRequiredArg();
        parser.accepts("db", "Database name").withRequiredArg();
        parser.acceptsAll(asList("u", "user"), "DB username.").withRequiredArg();
        parser.acceptsAll(asList("P", "password"), "DB password").withRequiredArg();
        parser.acceptsAll(asList("p", "port"), "DB port").withRequiredArg();
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

        parser.acceptsAll(asList("r", "reads"), "Enable reads.");
        parser.acceptsAll(asList("w", "writes"), "Enable writes.");
        parser.acceptsAll(asList("d", "deletes"), "Enable deletes.");
        parser.accepts("table", "Table name").withRequiredArg();
        parser.accepts("db", "Database name").withRequiredArg();
        parser.acceptsAll(asList("u", "user"), "DB username.").withRequiredArg();
        parser.acceptsAll(asList("P", "password"), "DB password").withRequiredArg();
        parser.acceptsAll(asList("p", "port"), "DB port").withRequiredArg();
        parser.acceptsAll(asList("h", "host"), "DB host").withRequiredArg();
        parser.accepts("requests").withRequiredArg().ofType(Integer.class);
        parser.accepts("request-file").withRequiredArg();
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

        parser.acceptsAll(asList("w", "writes"), "Enable writes.");
        parser.acceptsAll(asList("d", "deletes"), "Enable deletes.");
        parser.accepts("table", "Table name").withRequiredArg();
        parser.accepts("db", "Database name").withRequiredArg();
        parser.acceptsAll(asList("u", "user"), "DB username.").withRequiredArg();
        parser.acceptsAll(asList("P", "password"), "DB password").withRequiredArg();
        parser.acceptsAll(asList("p", "port"), "DB port").withRequiredArg();
        parser.acceptsAll(asList("h", "host"), "DB host").withRequiredArg();
        parser.accepts("requests").withRequiredArg().ofType(Integer.class);
        parser.accepts("request-file").withRequiredArg();
        parser.accepts("threads").withRequiredArg().ofType(Integer.class);
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

        parser.acceptsAll(asList("d", "deletes"), "Enable deletes.");
        parser.accepts("table", "Table name").withRequiredArg();
        parser.accepts("db", "Database name").withRequiredArg();
        parser.acceptsAll(asList("u", "user"), "DB username.").withRequiredArg();
        parser.acceptsAll(asList("P", "password"), "DB password").withRequiredArg();
        parser.acceptsAll(asList("p", "port"), "DB port").withRequiredArg();
        parser.acceptsAll(asList("h", "host"), "DB host").withRequiredArg();
        parser.accepts("requests").withRequiredArg().ofType(Integer.class);
        parser.accepts("request-file").withRequiredArg();
        parser.accepts("threads").withRequiredArg().ofType(Integer.class);
        OptionSet options = parser.parse(args);
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

        parser.accepts("table", "Table name").withRequiredArg();
        parser.accepts("db", "Database name").withRequiredArg();
        parser.acceptsAll(asList("u", "user"), "DB username.").withRequiredArg();
        parser.acceptsAll(asList("P", "password"), "DB password").withRequiredArg();
        parser.acceptsAll(asList("p", "port"), "DB port").withRequiredArg();
        parser.acceptsAll(asList("h", "host"), "DB host").withRequiredArg();
        parser.accepts("requests").withRequiredArg().ofType(Integer.class);
        parser.accepts("request-file").withRequiredArg();
        parser.accepts("threads").withRequiredArg().ofType(Integer.class);
        OptionSet options = parser.parse(args);
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

    static long SPLIT_SIZE = 1000000L;
    static Integer WRITER_BUFFER_SIZE = 16777216;

    public static OptionParser getParser() {
        OptionParser parser = new OptionParser();
        parser.acceptsAll(Arrays.asList("bdb"), "Store level BDB folder")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("input-file-or-folder");
        parser.acceptsAll(Arrays.asList("o", "output"), "Output folder of text dump")
                .withRequiredArg()
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

        OptionParser parser = new OptionParser();
        parser.acceptsAll(Arrays.asList("bdb"), "Store level BDB folder")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("input-file-or-folder");
        parser.acceptsAll(Arrays.asList("o", "output"), "Output folder of text dump")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("output-folder");

        return parser;
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

            OptionParser parser = new OptionParser();
            // help options
            CoordinatorAdminUtils.acceptsHelp(parser);
            // required options
            CoordinatorAdminUtils.acceptsUrlMultiple(parser);
            parser.acceptsAll(Arrays.asList(OPT_D, OPT_DEFINITION), "config definition string")
                  .withRequiredArg()
                  .describedAs("store-config-definition-string")
                  .ofType(String.class);
            parser.acceptsAll(Arrays.asList(OPT_F, OPT_FILE), "config file path")
                  .withRequiredArg()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.