Examples of acceptsAll()


Examples of joptsimple.OptionParser.acceptsAll()

            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()
                  .describedAs("store-config-file-path")
                  .ofType(String.class);
            // optional options
            CoordinatorAdminUtils.acceptsConfirm(parser);
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

    protected final Integer droppingZoneId;
    protected final String bootstrapUrl;

    public static OptionParser getParser() {
        OptionParser parser = new OptionParser();
        parser.acceptsAll(Arrays.asList("u", "url"), "Bootstrap URL of target cluster")
              .withRequiredArg()
              .ofType(String.class)
              .describedAs("bootstrap-url");
        parser.acceptsAll(Arrays.asList("i", "drop-zoneid"), "ID of the zone to be dropped")
              .withRequiredArg()
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

        OptionParser parser = new OptionParser();
        parser.acceptsAll(Arrays.asList("u", "url"), "Bootstrap URL of target cluster")
              .withRequiredArg()
              .ofType(String.class)
              .describedAs("bootstrap-url");
        parser.acceptsAll(Arrays.asList("i", "drop-zoneid"), "ID of the zone to be dropped")
              .withRequiredArg()
              .ofType(Integer.class)
              .describedAs("zone-id");
        parser.acceptsAll(Arrays.asList("real-run"),
                          "If and only if this option is specified, the program will actually execute the shrinkage(Real Run). Otherwise, it will not actually execute the shrinkage");
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

              .describedAs("bootstrap-url");
        parser.acceptsAll(Arrays.asList("i", "drop-zoneid"), "ID of the zone to be dropped")
              .withRequiredArg()
              .ofType(Integer.class)
              .describedAs("zone-id");
        parser.acceptsAll(Arrays.asList("real-run"),
                          "If and only if this option is specified, the program will actually execute the shrinkage(Real Run). Otherwise, it will not actually execute the shrinkage");
        parser.acceptsAll(Arrays.asList("h", "help"), "Show help message");

        return parser;
    }
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

              .withRequiredArg()
              .ofType(Integer.class)
              .describedAs("zone-id");
        parser.acceptsAll(Arrays.asList("real-run"),
                          "If and only if this option is specified, the program will actually execute the shrinkage(Real Run). Otherwise, it will not actually execute the shrinkage");
        parser.acceptsAll(Arrays.asList("h", "help"), "Show help message");

        return parser;
    }

    public static void validateOptions(OptionSet options) throws IOException {
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

public class ImportTextDumpToBDB {
    static Integer READER_BUFFER_SIZE = 16777216;

    public static OptionParser getParser() {
        OptionParser parser = new OptionParser();
        parser.acceptsAll(Arrays.asList("input"), "Input file or containing folder of data dump")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("input-file-or-folder");
        parser.acceptsAll(Arrays.asList("bdb"), "BDB folder store folder (not master)")
                .withRequiredArg()
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

        OptionParser parser = new OptionParser();
        parser.acceptsAll(Arrays.asList("input"), "Input file or containing folder of data dump")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("input-file-or-folder");
        parser.acceptsAll(Arrays.asList("bdb"), "BDB folder store folder (not master)")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("bdb-folder");
        parser.acceptsAll(Arrays.asList("stores-xml"), "Location of stores xml")
                .withRequiredArg()
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

                .describedAs("input-file-or-folder");
        parser.acceptsAll(Arrays.asList("bdb"), "BDB folder store folder (not master)")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("bdb-folder");
        parser.acceptsAll(Arrays.asList("stores-xml"), "Location of stores xml")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("stores-xml");
        parser.acceptsAll(Arrays.asList("cluster-xml"), "Location of cluster xml")
                .withRequiredArg()
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

                .describedAs("bdb-folder");
        parser.acceptsAll(Arrays.asList("stores-xml"), "Location of stores xml")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("stores-xml");
        parser.acceptsAll(Arrays.asList("cluster-xml"), "Location of cluster xml")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("cluster-xml");
        parser.acceptsAll(Arrays.asList("node-id"), "Current node id")
                .withRequiredArg()
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

                .describedAs("stores-xml");
        parser.acceptsAll(Arrays.asList("cluster-xml"), "Location of cluster xml")
                .withRequiredArg()
                .ofType(String.class)
                .describedAs("cluster-xml");
        parser.acceptsAll(Arrays.asList("node-id"), "Current node id")
                .withRequiredArg()
                .ofType(Integer.class)
                .describedAs("node-id");

        return parser;
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.