Class SolrCLI.CreateCollectionTool

  • All Implemented Interfaces:
    SolrCLI.Tool
    Enclosing class:
    SolrCLI

    public static class SolrCLI.CreateCollectionTool
    extends SolrCLI.ToolBase
    Supports create_collection command in the bin/solr script.
    • Constructor Detail

      • CreateCollectionTool

        public CreateCollectionTool()
      • CreateCollectionTool

        public CreateCollectionTool​(PrintStream stdout)
    • Method Detail

      • getName

        public String getName()
      • getOptions

        public org.apache.commons.cli.Option[] getOptions()
      • runCloudTool

        protected void runCloudTool​(org.apache.solr.client.solrj.impl.CloudSolrClient cloudSolrClient,
                                    org.apache.commons.cli.CommandLine cli)
                             throws Exception
        Throws:
        Exception
      • optionAsInt

        protected int optionAsInt​(org.apache.commons.cli.CommandLine cli,
                                  String option,
                                  int defaultVal)