Class SnapshotCreateTool

  • All Implemented Interfaces:
    Tool

    public class SnapshotCreateTool
    extends ToolBase
    Supports snapshot-create command in the bin/solr script.
    • Constructor Detail

      • SnapshotCreateTool

        public SnapshotCreateTool()
      • SnapshotCreateTool

        public SnapshotCreateTool​(PrintStream stdout)
    • Method Detail

      • 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()
      • createSnapshot

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