Class AuthTool

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

public class AuthTool extends ToolBase
Supports auth command in the bin/solr script.
  • Constructor Details

  • 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.
    • getUsage

      public String getUsage()
      Description copied from interface: Tool
      Provides a Usage string to display in help output. Defaults to auto generating usage string. Override for custom string
      Returns:
      The custom usage string or 'null' to auto generate (default)
    • getHeader

      public String getHeader()
      Description copied from interface: Tool
      Optional 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: Tool
      Retrieve the Options supported by this tool.
      Specified by:
      getOptions in interface Tool
      Overrides:
      getOptions in class ToolBase
      Returns:
      The Options this tool supports.
    • runImpl

      public void runImpl(org.apache.commons.cli.CommandLine cli) throws Exception
      Specified by:
      runImpl in class ToolBase
      Throws:
      Exception