Package joptsimple

Examples of joptsimple.OptionParser.accepts()


                  .withRequiredArg()
                  .ofType(Integer.class);
            parser.accepts("data-dir", "Data directory for storage data")
                  .withRequiredArg()
                  .describedAs("directory");
            parser.accepts("threads", "number of threads").withRequiredArg().ofType(Integer.class);
            parser.accepts("storage-configuration-class",
                           "[REQUIRED] class of the storage engine configuration to use [e.g. voldemort.store.bdb.BdbStorageConfiguration]")
                  .withRequiredArg()
                  .describedAs("class_name");
            parser.accepts("props", "Properties file with configuration for the engine")
View Full Code Here


                  .ofType(Integer.class);
            parser.accepts("data-dir", "Data directory for storage data")
                  .withRequiredArg()
                  .describedAs("directory");
            parser.accepts("threads", "number of threads").withRequiredArg().ofType(Integer.class);
            parser.accepts("storage-configuration-class",
                           "[REQUIRED] class of the storage engine configuration to use [e.g. voldemort.store.bdb.BdbStorageConfiguration]")
                  .withRequiredArg()
                  .describedAs("class_name");
            parser.accepts("props", "Properties file with configuration for the engine")
                  .withRequiredArg()
View Full Code Here

            parser.accepts("threads", "number of threads").withRequiredArg().ofType(Integer.class);
            parser.accepts("storage-configuration-class",
                           "[REQUIRED] class of the storage engine configuration to use [e.g. voldemort.store.bdb.BdbStorageConfiguration]")
                  .withRequiredArg()
                  .describedAs("class_name");
            parser.accepts("props", "Properties file with configuration for the engine")
                  .withRequiredArg()
                  .describedAs("config.properties");
            parser.accepts("value-size", "The size of the values in the store")
                  .withRequiredArg()
                  .describedAs("size")
View Full Code Here

                  .withRequiredArg()
                  .describedAs("class_name");
            parser.accepts("props", "Properties file with configuration for the engine")
                  .withRequiredArg()
                  .describedAs("config.properties");
            parser.accepts("value-size", "The size of the values in the store")
                  .withRequiredArg()
                  .describedAs("size")
                  .ofType(Integer.class);
            parser.accepts("cache-width", "Percentage of requests to save as possible re-requests")
                  .withRequiredArg()
View Full Code Here

                  .describedAs("config.properties");
            parser.accepts("value-size", "The size of the values in the store")
                  .withRequiredArg()
                  .describedAs("size")
                  .ofType(Integer.class);
            parser.accepts("cache-width", "Percentage of requests to save as possible re-requests")
                  .withRequiredArg()
                  .describedAs("width")
                  .ofType(Integer.class);
            parser.accepts("cache-hit-ratio",
                           "Percentage of requests coming from the last cache-width requests")
View Full Code Here

                  .ofType(Integer.class);
            parser.accepts("cache-width", "Percentage of requests to save as possible re-requests")
                  .withRequiredArg()
                  .describedAs("width")
                  .ofType(Integer.class);
            parser.accepts("cache-hit-ratio",
                           "Percentage of requests coming from the last cache-width requests")
                  .withRequiredArg()
                  .describedAs("ratio")
                  .ofType(Double.class);
            parser.accepts("clean-up", "Delete data directory when done.");
View Full Code Here

            parser.accepts("cache-hit-ratio",
                           "Percentage of requests coming from the last cache-width requests")
                  .withRequiredArg()
                  .describedAs("ratio")
                  .ofType(Double.class);
            parser.accepts("clean-up", "Delete data directory when done.");
            OptionSet options = parser.parse(args);

            if(options.has("help")) {
                parser.printHelpOn(System.out);
                System.exit(0);
View Full Code Here

     * @param args See usage for more information
     * @throws Exception In case of I/O or Voldemort-specific errors
     */
    public static void main(String[] args) throws Exception {
        OptionParser parser = new OptionParser();
        parser.accepts("help", "print usage information");
        parser.accepts("node", "[REQUIRED] node id")
              .withRequiredArg()
              .ofType(Integer.class)
              .describedAs("node id");
        parser.accepts("store-name", "[REQUIRED] store name")
View Full Code Here

     * @throws Exception In case of I/O or Voldemort-specific errors
     */
    public static void main(String[] args) throws Exception {
        OptionParser parser = new OptionParser();
        parser.accepts("help", "print usage information");
        parser.accepts("node", "[REQUIRED] node id")
              .withRequiredArg()
              .ofType(Integer.class)
              .describedAs("node id");
        parser.accepts("store-name", "[REQUIRED] store name")
              .withRequiredArg()
View Full Code Here

        parser.accepts("help", "print usage information");
        parser.accepts("node", "[REQUIRED] node id")
              .withRequiredArg()
              .ofType(Integer.class)
              .describedAs("node id");
        parser.accepts("store-name", "[REQUIRED] store name")
              .withRequiredArg()
              .describedAs("store name");
        parser.accepts("url", "[REQUIRED] bootstrap URL")
              .withRequiredArg()
              .describedAs("bootstrap-url");
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.