Package org.apache.solr.cli
Class SnapshotCreateTool
- java.lang.Object
-
- org.apache.solr.cli.ToolBase
-
- org.apache.solr.cli.SnapshotCreateTool
-
-
Constructor Summary
Constructors Constructor Description SnapshotCreateTool(ToolRuntime runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateSnapshot(org.apache.solr.client.solrj.SolrClient solrClient, String collectionName, String snapshotName)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
-
SnapshotCreateTool
public SnapshotCreateTool(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.
-
getOptions
public List<org.apache.commons.cli.Option> getOptions()
-
runImpl
public void runImpl(org.apache.commons.cli.CommandLine cli) throws Exception
-
-