Class StatusTool

  • All Implemented Interfaces:
    Tool

    public class StatusTool
    extends ToolBase
    • Constructor Detail

      • StatusTool

        public StatusTool()
        Get the status of a Solr server.
      • StatusTool

        public StatusTool​(PrintStream stdout)
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Tool
        Defines the interface to a Solr tool that can be run from this command-line app.
      • getOptions

        public List<org.apache.commons.cli.Option> getOptions()
      • reportStatus

        public Map<String,​Object> reportStatus​(org.apache.solr.common.util.NamedList<Object> info,
                                                     org.apache.solr.client.solrj.SolrClient solrClient)
                                              throws Exception
        Throws:
        Exception
      • getCloudStatus

        protected Map<String,​String> getCloudStatus​(org.apache.solr.client.solrj.SolrClient solrClient,
                                                          String zkHost)
                                                   throws Exception
        Calls the CLUSTERSTATUS endpoint in Solr to get basic status information about the SolrCloud cluster.
        Throws:
        Exception