Class SolrCLI.SolrCloudTool

  • All Implemented Interfaces:
    SolrCLI.Tool
    Direct Known Subclasses:
    SolrCLI.HealthcheckTool
    Enclosing class:
    SolrCLI

    public abstract static class SolrCLI.SolrCloudTool
    extends SolrCLI.ToolBase
    Helps build SolrCloud aware tools by initializing a CloudSolrClient instance before running the tool.
    • Constructor Detail

      • SolrCloudTool

        protected SolrCloudTool​(PrintStream stdout)
    • Method Detail

      • getOptions

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

        protected abstract void runCloudTool​(org.apache.solr.client.solrj.impl.CloudLegacySolrClient cloudSolrClient,
                                             org.apache.commons.cli.CommandLine cli)
                                      throws Exception
        Runs a SolrCloud tool with CloudSolrClient initialized
        Throws:
        Exception