Package org.opensearch.plugins
Class PluginHelper
java.lang.Object
org.opensearch.plugins.PluginHelper
A helper class for the plugin-cli tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathverifyIfPluginExists(Path pluginPath, String pluginName) Verify if a plugin exists with any folder name.
-
Constructor Details
-
PluginHelper
public PluginHelper()
-
-
Method Details
-
verifyIfPluginExists
Verify if a plugin exists with any folder name.- Parameters:
pluginPath- the path for the plugins directory.pluginName- the name of the concerned plugin.- Returns:
- the path of the folder if the plugin exists.
- Throws:
IOException- if any I/O exception occurs while performing a file operation
-