Class VersionTool

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

public class VersionTool extends ToolBase
Supports version command in the bin/solr script.

Prints the client (CLI) version. When a connection target (-s/ --solr-connection, --solr-url, or --zk-host) is provided, also prints the version of the remote Solr server.

  • Constructor Details

    • VersionTool

      public VersionTool(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 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