Package org.apache.solr.cli
Class ToolBase
java.lang.Object
org.apache.solr.cli.ToolBase
- All Implemented Interfaces:
Tool
- Direct Known Subclasses:
ApiTool,AssertTool,AuthTool,ClusterTool,ConfigSetDownloadTool,ConfigSetUploadTool,ConfigTool,CreateTool,DeleteTool,ExportTool,HealthcheckTool,LinkConfigTool,PackageTool,PostLogsTool,PostTool,RunExampleTool,SnapshotCreateTool,SnapshotDeleteTool,SnapshotDescribeTool,SnapshotExportTool,SnapshotListTool,StatusTool,StreamTool,UpdateACLTool,VersionTool,ZkCpTool,ZkLsTool,ZkMkrootTool,ZkMvTool,ZkRmTool,ZkToolHelp
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidechoIfVerbose(String msg) org.apache.commons.cli.OptionGroupProvides the two ways of connecting to Solr for CLI Toolsorg.apache.commons.cli.OptionsRetrieve theOptionssupported by this tool.Return non-null runtime of the tool.protected booleanIs this tool being run in a verbose mode?abstract voidrunImpl(org.apache.commons.cli.CommandLine cli) intrunTool(org.apache.commons.cli.CommandLine cli)
-
Field Details
-
runtime
-
-
Constructor Details
-
ToolBase
-
-
Method Details
-
isVerbose
protected boolean isVerbose()Is this tool being run in a verbose mode? -
echoIfVerbose
-
echo
-
getOptions
public org.apache.commons.cli.Options getOptions()Description copied from interface:ToolRetrieve theOptionssupported by this tool.- Specified by:
getOptionsin interfaceTool- Returns:
- The
Optionsthis tool supports.
-
getRuntime
Description copied from interface:ToolReturn non-null runtime of the tool.- Specified by:
getRuntimein interfaceTool
-
getConnectionOptions
public org.apache.commons.cli.OptionGroup getConnectionOptions()Provides the two ways of connecting to Solr for CLI Tools- Returns:
- OptionGroup validates that only one option is supplied by the caller.
-
runTool
-
runImpl
- Throws:
Exception
-