Package org.apache.solr.cli
Class DeleteTool
java.lang.Object
org.apache.solr.cli.ToolBase
org.apache.solr.cli.DeleteTool
- All Implemented Interfaces:
Tool
Supports delete command in the bin/solr script.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeleteCollection(org.apache.commons.cli.CommandLine cli) protected voiddeleteCollection(org.apache.solr.client.solrj.impl.CloudSolrClient cloudSolrClient, org.apache.commons.cli.CommandLine cli) protected voiddeleteCore(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
-
DeleteTool
-
-
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
-
deleteCollection
- Throws:
Exception
-
deleteCollection
protected void deleteCollection(org.apache.solr.client.solrj.impl.CloudSolrClient cloudSolrClient, org.apache.commons.cli.CommandLine cli) throws Exception - Throws:
Exception
-
deleteCore
protected void deleteCore(org.apache.commons.cli.CommandLine cli, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception - Throws:
Exception
-