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,ToolBase,UpdateACLTool,VersionTool,ZkCpTool,ZkLsTool,ZkMkrootTool,ZkMvTool,ZkRmTool,ZkToolHelp
public interface Tool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetFooter()Optional footer to display after the options in help output.default StringgetHeader()Optional header to display before the options in help output.StringgetName()Defines the interface to a Solr tool that can be run from this command-line app.List<org.apache.commons.cli.Option>getOptions()ToolRuntimegetRuntime()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 Detail
-
getName
String getName()
Defines the interface to a Solr tool that can be run from this command-line app.
-
getUsage
default String 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
default String getHeader()
Optional header to display before the options in help output. Defaults to 'List of options:'
-
getFooter
default String getFooter()
Optional footer to display after the options in help output. Defaults to a link to reference guide
-
getRuntime
ToolRuntime getRuntime()
Return non-null runtime of the tool.
-
getOptions
List<org.apache.commons.cli.Option> getOptions()
-
-