Package joptsimple

Examples of joptsimple.OptionParser.accepts()


                               + " By default backup has latest consistent snapshot.");
        parser.accepts("zone", "zone id")
              .withRequiredArg()
              .describedAs("zone-id")
              .ofType(Integer.class);
        parser.accepts("rollback", "rollback a store")
              .withRequiredArg()
              .describedAs("store-name")
              .ofType(String.class);
        parser.accepts("version", "Push version of store to rollback to")
              .withRequiredArg()
View Full Code Here


              .ofType(Integer.class);
        parser.accepts("rollback", "rollback a store")
              .withRequiredArg()
              .describedAs("store-name")
              .ofType(String.class);
        parser.accepts("version", "Push version of store to rollback to")
              .withRequiredArg()
              .describedAs("version")
              .ofType(Long.class);
        parser.accepts("verify-metadata-version",
                       "Verify the version of Metadata on all the cluster nodes");
View Full Code Here

              .ofType(String.class);
        parser.accepts("version", "Push version of store to rollback to")
              .withRequiredArg()
              .describedAs("version")
              .ofType(Long.class);
        parser.accepts("verify-metadata-version",
                       "Verify the version of Metadata on all the cluster nodes");
        parser.accepts("synchronize-metadata-version",
                       "Synchronize the metadata versions across all the nodes.");
        parser.accepts("reserve-memory", "Memory in MB to reserve for the store")
              .withRequiredArg()
View Full Code Here

              .withRequiredArg()
              .describedAs("version")
              .ofType(Long.class);
        parser.accepts("verify-metadata-version",
                       "Verify the version of Metadata on all the cluster nodes");
        parser.accepts("synchronize-metadata-version",
                       "Synchronize the metadata versions across all the nodes.");
        parser.accepts("reserve-memory", "Memory in MB to reserve for the store")
              .withRequiredArg()
              .describedAs("size-in-mb")
              .ofType(Long.class);
View Full Code Here

              .ofType(Long.class);
        parser.accepts("verify-metadata-version",
                       "Verify the version of Metadata on all the cluster nodes");
        parser.accepts("synchronize-metadata-version",
                       "Synchronize the metadata versions across all the nodes.");
        parser.accepts("reserve-memory", "Memory in MB to reserve for the store")
              .withRequiredArg()
              .describedAs("size-in-mb")
              .ofType(Long.class);
        parser.accepts("query-key", "Get values of a key on specific node")
              .withRequiredArg()
View Full Code Here

                       "Synchronize the metadata versions across all the nodes.");
        parser.accepts("reserve-memory", "Memory in MB to reserve for the store")
              .withRequiredArg()
              .describedAs("size-in-mb")
              .ofType(Long.class);
        parser.accepts("query-key", "Get values of a key on specific node")
              .withRequiredArg()
              .describedAs("query-key")
              .ofType(String.class);
        parser.accepts("query-key-format", "Format of the query key. Can be one of [hex|readable]")
              .withRequiredArg()
View Full Code Here

public class StorageEnginePerformanceTest {

    public static void main(String[] args) throws Exception {
        try {
            OptionParser parser = new OptionParser();
            parser.accepts("help", "print usage information");
            parser.accepts("requests", "[REQUIRED] number of requests to execute")
                  .withRequiredArg()
                  .ofType(Integer.class);
            parser.accepts("num-values", "[REQUIRED] number of values in the store")
                  .withRequiredArg()
View Full Code Here

    public static void main(String[] args) throws Exception {
        try {
            OptionParser parser = new OptionParser();
            parser.accepts("help", "print usage information");
            parser.accepts("requests", "[REQUIRED] number of requests to execute")
                  .withRequiredArg()
                  .ofType(Integer.class);
            parser.accepts("num-values", "[REQUIRED] number of values in the store")
                  .withRequiredArg()
                  .ofType(Integer.class);
View Full Code Here

            OptionParser parser = new OptionParser();
            parser.accepts("help", "print usage information");
            parser.accepts("requests", "[REQUIRED] number of requests to execute")
                  .withRequiredArg()
                  .ofType(Integer.class);
            parser.accepts("num-values", "[REQUIRED] number of values in the store")
                  .withRequiredArg()
                  .ofType(Integer.class);
            parser.accepts("data-dir", "Data directory for storage data")
                  .withRequiredArg()
                  .describedAs("directory");
View Full Code Here

                  .withRequiredArg()
                  .ofType(Integer.class);
            parser.accepts("num-values", "[REQUIRED] number of values in the store")
                  .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]")
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.