Package org.apache.solr.cli
Class VersionTool
java.lang.Object
org.apache.solr.cli.ToolBase
org.apache.solr.cli.VersionTool
- All Implemented Interfaces:
Tool
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.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.solr.cli.ToolBase
echo, echoIfVerbose, echoIfVerbose, getConnectionOptions, getRuntime, isVerbose, runTool
-
Constructor Details
-
VersionTool
-
-
Method Details
-
getName
Description copied from interface:ToolDefines 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:ToolRetrieve theOptionssupported by this tool.- Specified by:
getOptionsin interfaceTool- Overrides:
getOptionsin classToolBase- Returns:
- The
Optionsthis tool supports.
-
runImpl
-