Examples of valuesOf()


Examples of joptsimple.OptionSet.valuesOf()

            // load parameters
            storeNames = (List<String>) options.valuesOf(AdminParserUtils.OPT_STORE);
            url = (String) options.valueOf(AdminParserUtils.OPT_URL);
            zoneId = (Integer) options.valueOf(AdminParserUtils.OPT_ZONE);
            if(options.has(AdminParserUtils.OPT_NODE)) {
                nodeIds = (List<Integer>) options.valuesOf(AdminParserUtils.OPT_NODE);
                allNodes = false;
            }
            if(options.has(AdminParserUtils.OPT_CONFIRM)) {
                confirm = true;
            }
View Full Code Here

Examples of joptsimple.OptionSet.valuesOf()

            // check required options and/or conflicting options
            AdminParserUtils.checkRequired(options, OPT_HEAD_META_CHECK);
            AdminParserUtils.checkRequired(options, AdminParserUtils.OPT_URL);

            // load parameters
            metaKeys = (List<String>) options.valuesOf(OPT_HEAD_META_CHECK);
            url = (String) options.valueOf(AdminParserUtils.OPT_URL);

            // execute command
            if(metaKeys.size() == 1 && metaKeys.get(0).equals(METAKEY_ALL)) {
                metaKeys = Lists.newArrayList();
View Full Code Here

Examples of joptsimple.OptionSet.valuesOf()

                                           AdminParserUtils.OPT_ALL_NODES);

            // load parameters
            if(options.has(AdminParserUtils.OPT_HEX)) {
                keyType = AdminParserUtils.OPT_HEX;
                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_HEX);
            } else if(options.has(AdminParserUtils.OPT_JSON)) {
                keyType = AdminParserUtils.OPT_JSON;
                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_JSON);
            }
            storeNames = (List<String>) options.valuesOf(AdminParserUtils.OPT_STORE);
View Full Code Here

Examples of joptsimple.OptionSet.valuesOf()

            if(options.has(AdminParserUtils.OPT_HEX)) {
                keyType = AdminParserUtils.OPT_HEX;
                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_HEX);
            } else if(options.has(AdminParserUtils.OPT_JSON)) {
                keyType = AdminParserUtils.OPT_JSON;
                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_JSON);
            }
            storeNames = (List<String>) options.valuesOf(AdminParserUtils.OPT_STORE);
            url = (String) options.valueOf(AdminParserUtils.OPT_URL);
            if(options.has(AdminParserUtils.OPT_NODE)) {
                nodeIds = (List<Integer>) options.valuesOf(AdminParserUtils.OPT_NODE);
View Full Code Here

Examples of joptsimple.OptionSet.valuesOf()

                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_HEX);
            } else if(options.has(AdminParserUtils.OPT_JSON)) {
                keyType = AdminParserUtils.OPT_JSON;
                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_JSON);
            }
            storeNames = (List<String>) options.valuesOf(AdminParserUtils.OPT_STORE);
            url = (String) options.valueOf(AdminParserUtils.OPT_URL);
            if(options.has(AdminParserUtils.OPT_NODE)) {
                nodeIds = (List<Integer>) options.valuesOf(AdminParserUtils.OPT_NODE);
                allNodes = false;
            }
View Full Code Here

Examples of joptsimple.OptionSet.valuesOf()

                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_JSON);
            }
            storeNames = (List<String>) options.valuesOf(AdminParserUtils.OPT_STORE);
            url = (String) options.valueOf(AdminParserUtils.OPT_URL);
            if(options.has(AdminParserUtils.OPT_NODE)) {
                nodeIds = (List<Integer>) options.valuesOf(AdminParserUtils.OPT_NODE);
                allNodes = false;
            }

            // execute command
            AdminClient adminClient = AdminToolUtils.getAdminClient(url);
View Full Code Here

Examples of joptsimple.OptionSet.valuesOf()

                                           AdminParserUtils.OPT_JSON);

            // load parameters
            if(options.has(AdminParserUtils.OPT_HEX)) {
                keyType = AdminParserUtils.OPT_HEX;
                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_HEX);
            } else if(options.has(AdminParserUtils.OPT_JSON)) {
                keyType = AdminParserUtils.OPT_JSON;
                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_JSON);
                throw new VoldemortException("Key type OPT_JSON not supported.");
            }
View Full Code Here

Examples of joptsimple.OptionSet.valuesOf()

            if(options.has(AdminParserUtils.OPT_HEX)) {
                keyType = AdminParserUtils.OPT_HEX;
                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_HEX);
            } else if(options.has(AdminParserUtils.OPT_JSON)) {
                keyType = AdminParserUtils.OPT_JSON;
                keyStrings = (List<String>) options.valuesOf(AdminParserUtils.OPT_JSON);
                throw new VoldemortException("Key type OPT_JSON not supported.");
            }
            storeName = (String) options.valueOf(AdminParserUtils.OPT_STORE);
            url = (String) options.valueOf(AdminParserUtils.OPT_URL);
View Full Code Here

Examples of joptsimple.OptionSet.valuesOf()

                                           AdminParserUtils.OPT_ALL_NODES);

            // load parameters
            url = (String) options.valueOf(AdminParserUtils.OPT_URL);
            if(options.has(AdminParserUtils.OPT_NODE)) {
                nodeIds = (List<Integer>) options.valuesOf(AdminParserUtils.OPT_NODE);
                allNodes = false;
            }
            if(options.has(AdminParserUtils.OPT_CONFIRM)) {
                confirm = true;
            }
View Full Code Here

Examples of joptsimple.OptionSet.valuesOf()

            AdminParserUtils.checkRequired(options, OPT_HEAD_QUOTA_GET);
            AdminParserUtils.checkRequired(options, AdminParserUtils.OPT_STORE);
            AdminParserUtils.checkRequired(options, AdminParserUtils.OPT_URL);

            // load parameters
            quotaTypes = AdminToolUtils.getQuotaTypes((List<String>) options.valuesOf(OPT_HEAD_QUOTA_GET));
            storeNames = (List<String>) options.valuesOf(AdminParserUtils.OPT_STORE);
            url = (String) options.valueOf(AdminParserUtils.OPT_URL);

            // execute command
            AdminClient adminClient = AdminToolUtils.getAdminClient(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.