public interface CliToolProvider
An interface for command line tools to be instantiated and run.
-
Method Summary
-
Method Details
-
name
String name()Returns the name of the tool provider. This must be unique across all tool providers. -
create
Command create()Constructs the CLI instance to be run. -
load
Loads a tool provider from the Elasticsearch distribution.- Parameters:
toolname
- the name of the tool to loadlibs
- the library directories to load, relative to the Elasticsearch homedir- Returns:
- the instance of the loaded tool
- Throws:
AssertionError
- if the given toolname cannot be found or there are more than one tools found with the same name
-