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
ConstructorsConstructorDescriptionMockPluginsService(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, getStablePluginRegistry, loadSingletonServiceProvider, 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:
pluginsin classPluginsService
-
info
- Specified by:
infoin interfaceReportingService<PluginsAndModules>- Overrides:
infoin classPluginsService
-
loadServiceProviders
- Overrides:
loadServiceProvidersin classPluginsService
-