Package org.elasticsearch.plugins
Class MockPluginsService
java.lang.Object
org.elasticsearch.plugins.PluginsService
org.elasticsearch.plugins.MockPluginsService
- All Implemented Interfaces:
ReportingService<PluginsAndModules>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.node.ReportingService
ReportingService.Info
-
Field Summary
Fields inherited from class org.elasticsearch.plugins.PluginsService
MANDATORY_SETTING
-
Constructor Summary
ConstructorDescriptionMockPluginsService
(Settings settings, Environment environment, Collection<Class<? extends Plugin>> classpathPlugins) Constructs a new PluginService -
Method Summary
Modifier and TypeMethodDescriptioninfo()
<T> List<? extends T>
loadServiceProviders
(Class<T> service) protected final List<org.elasticsearch.plugins.PluginsService.LoadedPlugin>
plugins()
Methods inherited from class org.elasticsearch.plugins.PluginsService
filterPlugins, flatMap, forEach, getPluginsServiceCtor, getStablePluginRegistry, map, pluginMap
-
Constructor Details
-
MockPluginsService
public MockPluginsService(Settings settings, Environment environment, Collection<Class<? extends Plugin>> classpathPlugins) Constructs a new PluginService- Parameters:
settings
- The settings of the systemenvironment
- The environment for the pluginclasspathPlugins
- Plugins that exist in the classpath which should be loaded
-
-
Method Details
-
plugins
- Overrides:
plugins
in classPluginsService
-
info
- Specified by:
info
in interfaceReportingService<PluginsAndModules>
- Overrides:
info
in classPluginsService
-
loadServiceProviders
- Overrides:
loadServiceProviders
in classPluginsService
-