Package org.apache.solr.cli
Class CreateTool
java.lang.Object
org.apache.solr.cli.ToolBase
org.apache.solr.cli.CreateTool
- All Implemented Interfaces:
Tool
Supports create command in the bin/solr script.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Optional header to display before the options in help output.getName()Defines the interface to a Solr tool that can be run from this command-line app.org.apache.commons.cli.OptionsRetrieve theOptionssupported by this tool.voidrunImpl(org.apache.commons.cli.CommandLine cli) Methods inherited from class org.apache.solr.cli.ToolBase
echo, echoIfVerbose, getConnectionOptions, getRuntime, isVerbose, runTool
-
Constructor Details
-
CreateTool
-
-
Method Details
-
getName
Description copied from interface:ToolDefines the interface to a Solr tool that can be run from this command-line app. -
getHeader
Description copied from interface:ToolOptional header to display before the options in help output. Defaults to 'List of options:' -
getOptions
public org.apache.commons.cli.Options getOptions()Description copied from interface:ToolRetrieve theOptionssupported by this tool.- Specified by:
getOptionsin interfaceTool- Overrides:
getOptionsin classToolBase- Returns:
- The
Optionsthis tool supports.
-
runImpl
-
createCore
protected void createCore(org.apache.commons.cli.CommandLine cli, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception - Throws:
Exception
-
createCollection
- Throws:
Exception
-
createCollection
protected void createCollection(org.apache.solr.client.solrj.impl.CloudSolrClient cloudSolrClient, org.apache.commons.cli.CommandLine cli) throws Exception - Throws:
Exception
-