Package org.opensearch.plugins
Class PluginHelper
- java.lang.Object
-
- org.opensearch.plugins.PluginHelper
-
public class PluginHelper extends java.lang.ObjectA helper class for the plugin-cli tasks.
-
-
Constructor Summary
Constructors Constructor Description PluginHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.file.PathverifyIfPluginExists(java.nio.file.Path pluginPath, java.lang.String pluginName)Verify if a plugin exists with any folder name.
-
-
-
Method Detail
-
verifyIfPluginExists
public static java.nio.file.Path verifyIfPluginExists(java.nio.file.Path pluginPath, java.lang.String pluginName) throws java.io.IOExceptionVerify 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:
java.io.IOException- if any I/O exception occurs while performing a file operation
-
-