Package org.apache.solr.cli
Class CreateTool
- java.lang.Object
-
- org.apache.solr.cli.ToolBase
-
- org.apache.solr.cli.CreateTool
-
-
Constructor Summary
Constructors Constructor Description CreateTool(ToolRuntime runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateCollection(org.apache.commons.cli.CommandLine cli)protected voidcreateCollection(org.apache.solr.client.solrj.impl.CloudSolrClient cloudSolrClient, org.apache.commons.cli.CommandLine cli)protected voidcreateCore(org.apache.commons.cli.CommandLine cli, org.apache.solr.client.solrj.SolrClient solrClient)StringgetHeader()Optional header to display before the options in help output.StringgetName()Defines the interface to a Solr tool that can be run from this command-line app.List<org.apache.commons.cli.Option>getOptions()voidrunImpl(org.apache.commons.cli.CommandLine cli)-
Methods inherited from class org.apache.solr.cli.ToolBase
echo, echoIfVerbose, getRuntime, isVerbose, runTool
-
-
-
-
Constructor Detail
-
CreateTool
public CreateTool(ToolRuntime runtime)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:ToolDefines the interface to a Solr tool that can be run from this command-line app.
-
getHeader
public String getHeader()
Description copied from interface:ToolOptional header to display before the options in help output. Defaults to 'List of options:'
-
getOptions
public List<org.apache.commons.cli.Option> getOptions()
-
runImpl
public void runImpl(org.apache.commons.cli.CommandLine cli) throws Exception
-
createCore
protected void createCore(org.apache.commons.cli.CommandLine cli, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception- Throws:
Exception
-
createCollection
protected void createCollection(org.apache.commons.cli.CommandLine cli) throws Exception- Throws:
Exception
-
-