Class PluginsService

org.elasticsearch.plugins.PluginsService
All Implemented Interfaces:
ReportingService<PluginsAndModules>

public class PluginsService extends implements ReportingService<PluginsAndModules>
  • Field Details

    • MANDATORY_SETTING

      public static final <>> MANDATORY_SETTING
  • Constructor Details

    • PluginsService

      public PluginsService(Settings settings,  configPath,  modulesDirectory,  pluginsDirectory, <<? extends Plugin>> classpathPlugins)
      Constructs a new PluginService
      Parameters:
      settings - The settings of the system
      modulesDirectory - The directory modules exist in, or null if modules should not be loaded from the filesystem
      pluginsDirectory - The directory plugins exist in, or null if plugins should not be loaded from the filesystem
      classpathPlugins - Plugins that exist in the classpath which should be loaded
  • Method Details

    • getPluginSettings

      public <Setting<?>> getPluginSettings()
    • getPluginSettingsFilter

      public <> getPluginSettingsFilter()
    • updatedSettings

      public Settings updatedSettings()
    • createGuiceModules

      public <Module> createGuiceModules()
    • getExecutorBuilders

      public <ExecutorBuilder<?>> getExecutorBuilders(Settings settings)
    • getGuiceServiceClasses

      public <<? extends LifecycleComponent>> getGuiceServiceClasses()
      Returns all classes injected into guice by plugins which extend LifecycleComponent.
    • onIndexModule

      public void onIndexModule(IndexModule indexModule)
    • info

      public PluginsAndModules info()
      Get information about plugins and modules
      Specified by:
      info in interface ReportingService<PluginsAndModules>
    • findPluginDirs

      public static <> findPluginDirs( rootPath) throws
      Extracts all installed plugin directories from the provided rootPath.
      Parameters:
      rootPath - the path where the plugins are installed
      Returns:
      a list of all plugin paths installed in the rootPath
      Throws:
      - if an I/O exception occurred reading the directories
    • filterPlugins

      public <T> <T> filterPlugins(<T> type)