Class PluginHelper

java.lang.Object
org.opensearch.plugins.PluginHelper

public class PluginHelper extends Object
A helper class for the plugin-cli tasks.
  • Constructor Details

    • PluginHelper

      public PluginHelper()
  • Method Details

    • verifyIfPluginExists

      public static Path verifyIfPluginExists(Path pluginPath, String pluginName) throws IOException
      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