Examples of acceptsAll()


Examples of joptsimple.OptionParser.acceptsAll()

                .withRequiredArg()
                .withValuesConvertedBy(new EnumConverter<LifecycleState>(LifecycleState.class))
                .defaultsTo(LifecycleState.DEFAULT)
                .describedAs("state");

        incrementalIdxStateOption = parser
                .acceptsAll(Lists.newArrayList("incremental"), "Incremental indexing state, one of "
                        + IncrementalIndexingState.SUBSCRIBE_AND_CONSUME
                        + ", " + IncrementalIndexingState.SUBSCRIBE_DO_NOT_CONSUME
                        + ", " + IncrementalIndexingState.DO_NOT_SUBSCRIBE)
                .withRequiredArg()
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

                .withRequiredArg()
                .withValuesConvertedBy(new EnumConverter<IncrementalIndexingState>(IncrementalIndexingState.class))
                .defaultsTo(IncrementalIndexingState.DEFAULT)
                .describedAs("state");

        batchIdxStateOption = parser
                .acceptsAll(Lists.newArrayList("batch"), "Batch indexing state, can only be set to "
                        + BatchIndexingState.BUILD_REQUESTED + (". This will trigger a batch rebuild of the index in "
                        + "\"direct write\" mode (scanning over all records and sending the results to a live solr cluster)."))
                .withRequiredArg()
                .withValuesConvertedBy(new EnumConverter<BatchIndexingState>(BatchIndexingState.class))
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

                .withRequiredArg()
                .withValuesConvertedBy(new EnumConverter<BatchIndexingState>(BatchIndexingState.class))
                .defaultsTo(BatchIndexingState.DEFAULT)
                .describedAs("state");

        defaultBatchIndexCliArgumentsOption = parser
                .acceptsAll(Lists.newArrayList("dbc", "default-batch-cli-arguments"),
                        "Default batch indexing cli arguments for this indexer. On update, use this option without"
                                + " filename argument to clear the setting. Note that not all options of the map reduce"
                                + " batch index job make sense in this context, because it only supports direct write to"
                                + " a running solr cluster (i.e. --reducers 0)")
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

                                + " filename argument to clear the setting. Note that not all options of the map reduce"
                                + " batch index job make sense in this context, because it only supports direct write to"
                                + " a running solr cluster (i.e. --reducers 0)")
                .withOptionalArg().ofType(String.class).describedAs("file-with-arguments");

        batchIndexCliArgumentsOption = parser
                .acceptsAll(Lists.newArrayList("bc", "batch-cli-arguments"),
                        "Batch indexing cli arguments to use for the next batch index build triggered, this overrides"
                                + " the default batch index cli arguments (if any). On update, use this option without"
                                + " filename argument to clear the setting. Note that not all options of the map reduce"
                                + " batch index job make sense in this context, because it only supports direct write to"
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

     * Optionally override this to add CLI options. The canonical usage is to first call super,
     * and then add your own options to it.
     */
    protected OptionParser setupOptionParser() {
        OptionParser parser =  new OptionParser();
        parser.acceptsAll(Lists.newArrayList("h", "help"), "shows help for this command");
        parser.acceptsAll(Lists.newArrayList("dl", "default-log"), "don't override log4j config");
        return parser;
    }

    /**
 
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

     * and then add your own options to it.
     */
    protected OptionParser setupOptionParser() {
        OptionParser parser =  new OptionParser();
        parser.acceptsAll(Lists.newArrayList("h", "help"), "shows help for this command");
        parser.acceptsAll(Lists.newArrayList("dl", "default-log"), "don't override log4j config");
        return parser;
    }

    /**
     * The name of this command, for use in informational messages.
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

    @Override
    protected OptionParser setupOptionParser() {
        OptionParser parser = super.setupOptionParser();

        nameOption = parser.acceptsAll(Lists.newArrayList("n", "name"), "a name for the index").withRequiredArg().ofType(
                String.class).required();

        return parser;
    }
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

        PropertyConfigurator.configure(getClass().getResource("log4j.properties"));

        OptionParser parser =  new OptionParser();
        OptionSpec enableJmxOption = parser.accepts("enable-jmx",
                "use JMX to retrieve info from HBase regionservers (port " + ReplicationStatusRetriever.HBASE_JMX_PORT + ")");
        OptionSpec<String> zkOption = parser
                .acceptsAll(ImmutableList.of("z"), "ZooKeeper connection string, defaults to localhost")
                .withRequiredArg().ofType(String.class)
                .defaultsTo("localhost");
       
        OptionSpec<Integer> hbaseMasterPortOption = parser
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

        OptionSpec<String> zkOption = parser
                .acceptsAll(ImmutableList.of("z"), "ZooKeeper connection string, defaults to localhost")
                .withRequiredArg().ofType(String.class)
                .defaultsTo("localhost");
       
        OptionSpec<Integer> hbaseMasterPortOption = parser
                .acceptsAll(ImmutableList.of("hbase-master-port"), "HBase Master web ui port number")
                .withRequiredArg().ofType(Integer.class)
                .defaultsTo(60010);

        OptionSet options = null;
View Full Code Here

Examples of joptsimple.OptionParser.acceptsAll()

    @Override
    protected OptionParser setupOptionParser() {
        OptionParser parser = super.setupOptionParser();

        zkOption = parser
                        .acceptsAll(Lists.newArrayList("z", "zookeeper"), "ZooKeeper connection string. Can also be " +
                                "specified through environment variable " + ZK_ENV_VAR)
                        .withRequiredArg().ofType(String.class).describedAs("connection-string");

        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.