Package org.apache.solr.cli
Class StatusTool
- java.lang.Object
- 
- org.apache.solr.cli.ToolBase
- 
- org.apache.solr.cli.StatusTool
 
 
- 
- 
Field SummaryFields Modifier and Type Field Description static org.apache.commons.cli.OptionOPTION_MAXWAITSECS
 - 
Constructor SummaryConstructors Constructor Description StatusTool()Get the status of a Solr server.StatusTool(PrintStream stdout)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>getCloudStatus(org.apache.solr.client.solrj.SolrClient solrClient, String zkHost)Calls the CLUSTERSTATUS endpoint in Solr to get basic status information about the SolrCloud cluster.StringgetName()Defines the interface to a Solr tool that can be run from this command-line app.List<org.apache.commons.cli.Option>getOptions()Map<String,Object>getStatus(String solrUrl)Map<String,Object>reportStatus(org.apache.solr.common.util.NamedList<Object> info, org.apache.solr.client.solrj.SolrClient solrClient)voidrunImpl(org.apache.commons.cli.CommandLine cli)Map<String,Object>waitToSeeSolrUp(String solrUrl, long maxWait, TimeUnit unit)- 
Methods inherited from class org.apache.solr.cli.ToolBaseecho, echoIfVerbose, runTool
 
- 
 
- 
- 
- 
Constructor Detail- 
StatusToolpublic StatusTool() Get the status of a Solr server.
 - 
StatusToolpublic StatusTool(PrintStream stdout) 
 
- 
 - 
Method Detail- 
getNamepublic String getName() Description copied from interface:ToolDefines the interface to a Solr tool that can be run from this command-line app.
 - 
getOptionspublic List<org.apache.commons.cli.Option> getOptions() 
 - 
runImplpublic void runImpl(org.apache.commons.cli.CommandLine cli) throws Exception
 - 
waitToSeeSolrUppublic Map<String,Object> waitToSeeSolrUp(String solrUrl, long maxWait, TimeUnit unit) throws Exception - Throws:
- Exception
 
 - 
reportStatuspublic Map<String,Object> reportStatus(org.apache.solr.common.util.NamedList<Object> info, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception - Throws:
- Exception
 
 
- 
 
-