Package org.apache.solr.cli
Interface Tool
- All Known Implementing Classes:
ApiTool,AssertTool,AuthTool,ClusterTool,ConfigSetDownloadTool,ConfigSetUploadTool,ConfigTool,CreateTool,DeleteTool,ExportTool,HealthcheckTool,LinkConfigTool,PackageTool,PostLogsTool,PostTool,RunExampleTool,SnapshotCreateTool,SnapshotDeleteTool,SnapshotDescribeTool,SnapshotExportTool,SnapshotListTool,StatusTool,StreamTool,ToolBase,UpdateACLTool,VersionTool,ZkCpTool,ZkLsTool,ZkMkrootTool,ZkMvTool,ZkRmTool,ZkToolHelp
public interface Tool
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringOptional footer to display after the options in help output.default StringOptional header to display before the options in help output.getName()Defines the interface to a Solr tool that can be run from this command-line app.org.apache.commons.cli.OptionsRetrieve theOptionssupported by this tool.Return non-null runtime of the tool.default StringgetUsage()Provides a Usage string to display in help output.intrunTool(org.apache.commons.cli.CommandLine cli)
-
Method Details
-
getName
String getName()Defines the interface to a Solr tool that can be run from this command-line app. -
getUsage
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
Optional header to display before the options in help output. Defaults to 'List of options:' -
getRuntime
ToolRuntime getRuntime()Return non-null runtime of the tool. -
getOptions
org.apache.commons.cli.Options getOptions()Retrieve theOptionssupported by this tool.- Returns:
- The
Optionsthis tool supports.
-
runTool
- Throws:
Exception
-