Package org.elasticsearch.plugins
Class PluginsService
java.lang.Object
org.elasticsearch.plugins.PluginsService
- All Implemented Interfaces:
ReportingService<PluginsAndModules>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.node.ReportingService
ReportingService.Info
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPluginsService(Settings settings, Path configPath, Path modulesDirectory, Path pluginsDirectory, Collection<Class<? extends Plugin>> classpathPlugins)
Constructs a new PluginService -
Method Summary
Modifier and TypeMethodDescription<T> List<T>
filterPlugins(Class<T> type)
findPluginDirs(Path rootPath)
Extracts all installed plugin directories from the providedrootPath
.List<ExecutorBuilder<?>>
getExecutorBuilders(Settings settings)
Collection<Class<? extends LifecycleComponent>>
Returns all classes injected into guice by plugins which extendLifecycleComponent
.info()
Get information about plugins and modulesvoid
onIndexModule(IndexModule indexModule)
-
Field Details
-
MANDATORY_SETTING
-
-
Constructor Details
-
PluginsService
public PluginsService(Settings settings, Path configPath, Path modulesDirectory, Path pluginsDirectory, Collection<Class<? extends Plugin>> classpathPlugins)Constructs a new PluginService- Parameters:
settings
- The settings of the systemmodulesDirectory
- The directory modules exist in, or null if modules should not be loaded from the filesystempluginsDirectory
- The directory plugins exist in, or null if plugins should not be loaded from the filesystemclasspathPlugins
- Plugins that exist in the classpath which should be loaded
-
-
Method Details
-
getPluginSettings
-
getPluginSettingsFilter
-
updatedSettings
-
createGuiceModules
-
getExecutorBuilders
-
getGuiceServiceClasses
Returns all classes injected into guice by plugins which extendLifecycleComponent
. -
onIndexModule
-
info
Get information about plugins and modules- Specified by:
info
in interfaceReportingService<PluginsAndModules>
-
findPluginDirs
Extracts all installed plugin directories from the providedrootPath
.- Parameters:
rootPath
- the path where the plugins are installed- Returns:
- a list of all plugin paths installed in the
rootPath
- Throws:
IOException
- if an I/O exception occurred reading the directories
-
filterPlugins
-