Class SnapshotDeleteTool

java.lang.Object
org.apache.solr.cli.ToolBase
org.apache.solr.cli.SnapshotDeleteTool
All Implemented Interfaces:
Tool

public class SnapshotDeleteTool extends ToolBase
Supports snapshot-delete command in the bin/solr script.
  • Constructor Details

    • SnapshotDeleteTool

      public SnapshotDeleteTool(ToolRuntime runtime)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Tool
      Defines 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
      Specified by:
      runImpl in class ToolBase
      Throws:
      Exception
    • deleteSnapshot

      public void deleteSnapshot(org.apache.solr.client.solrj.SolrClient solrClient, String collectionName, String snapshotName)