Package joptsimple

Examples of joptsimple.OptionParser.accepts()


        parser.accepts("fu", "fetch and update").withRequiredArg().ofType(Integer.class);
        parser.accepts("n", "node id")
              .withRequiredArg()
              .ofType(Integer.class)
              .withValuesSeparatedBy(',');
        parser.accepts("p", "partition id")
              .withRequiredArg()
              .ofType(Integer.class)
              .withValuesSeparatedBy(',');
        OptionSet options = parser.parse(args);
View Full Code Here


        parser.accepts("ro-metadata",
                       "retrieve version information [current | max | storage-format]")
              .withRequiredArg()
              .describedAs("type")
              .ofType(String.class);
        parser.accepts("truncate", "truncate a store")
              .withRequiredArg()
              .describedAs("store-name")
              .ofType(String.class);
        parser.accepts("set-metadata",
                       "Forceful setting of metadata [ " + MetadataStore.CLUSTER_KEY + " | "
View Full Code Here

              .ofType(String.class);
        parser.accepts("truncate", "truncate a store")
              .withRequiredArg()
              .describedAs("store-name")
              .ofType(String.class);
        parser.accepts("set-metadata",
                       "Forceful setting of metadata [ " + MetadataStore.CLUSTER_KEY + " | "
                               + MetadataStore.STORES_KEY + " | " + MetadataStore.SERVER_STATE_KEY
                               + " | " + MetadataStore.REBALANCING_SOURCE_CLUSTER_XML + " | "
                               + MetadataStore.REBALANCING_STEAL_INFO + " ]")
              .withRequiredArg()
View Full Code Here

                               + " | " + MetadataStore.REBALANCING_SOURCE_CLUSTER_XML + " | "
                               + MetadataStore.REBALANCING_STEAL_INFO + " ]")
              .withRequiredArg()
              .describedAs("metadata-key")
              .ofType(String.class);
        parser.accepts("set-metadata-value",
                       "The value for the set-metadata [ " + MetadataStore.CLUSTER_KEY + " | "
                               + MetadataStore.STORES_KEY + ", "
                               + MetadataStore.REBALANCING_SOURCE_CLUSTER_XML + ", "
                               + MetadataStore.REBALANCING_STEAL_INFO
                               + " ] - xml file location, [ " + MetadataStore.SERVER_STATE_KEY
View Full Code Here

                               + MetadataStore.VoldemortState.REBALANCING_MASTER_SERVER + ","
                               + MetadataStore.VoldemortState.OFFLINE_SERVER)
              .withRequiredArg()
              .describedAs("metadata-value")
              .ofType(String.class);
        parser.accepts("update-store-defs",
                       "Update the ["
                               + MetadataStore.STORES_KEY
                               + "] with the new value for only the specified stores in update-value.");
        parser.accepts("update-store-value",
                       "The value for update-store-defs ] - xml file location")
View Full Code Here

              .ofType(String.class);
        parser.accepts("update-store-defs",
                       "Update the ["
                               + MetadataStore.STORES_KEY
                               + "] with the new value for only the specified stores in update-value.");
        parser.accepts("update-store-value",
                       "The value for update-store-defs ] - xml file location")
              .withRequiredArg()
              .describedAs("stores-xml-value")
              .ofType(String.class);
        parser.accepts("set-metadata-pair",
View Full Code Here

        parser.accepts("update-store-value",
                       "The value for update-store-defs ] - xml file location")
              .withRequiredArg()
              .describedAs("stores-xml-value")
              .ofType(String.class);
        parser.accepts("set-metadata-pair",
                       "Atomic setting of metadata pair [ " + MetadataStore.CLUSTER_KEY + " & "
                               + MetadataStore.STORES_KEY + " ]")
              .withRequiredArg()
              .describedAs("metadata-keys-pair")
              .withValuesSeparatedBy(',')
View Full Code Here

                               + MetadataStore.STORES_KEY + " ]")
              .withRequiredArg()
              .describedAs("metadata-keys-pair")
              .withValuesSeparatedBy(',')
              .ofType(String.class);
        parser.accepts("set-metadata-value-pair",
                       "The value for the set-metadata pair [ " + MetadataStore.CLUSTER_KEY + " & "
                               + MetadataStore.STORES_KEY + " ]")
              .withRequiredArg()
              .describedAs("metadata-value-pair")
              .withValuesSeparatedBy(',')
View Full Code Here

                               + MetadataStore.STORES_KEY + " ]")
              .withRequiredArg()
              .describedAs("metadata-value-pair")
              .withValuesSeparatedBy(',')
              .ofType(String.class);
        parser.accepts("clear-rebalancing-metadata", "Remove the metadata related to rebalancing");
        parser.accepts("async",
                       "a) Get a list of async job ids [get] b) Stop async job ids [stop] ")
              .withRequiredArg()
              .describedAs("op-type")
              .ofType(String.class);
View Full Code Here

              .withRequiredArg()
              .describedAs("metadata-value-pair")
              .withValuesSeparatedBy(',')
              .ofType(String.class);
        parser.accepts("clear-rebalancing-metadata", "Remove the metadata related to rebalancing");
        parser.accepts("async",
                       "a) Get a list of async job ids [get] b) Stop async job ids [stop] ")
              .withRequiredArg()
              .describedAs("op-type")
              .ofType(String.class);
        parser.accepts("async-id", "Comma separated list of async ids to stop")
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.