public class PluginsService extends AbstractComponent
deprecationLogger, logger, settings
Constructor and Description |
---|
PluginsService(Settings settings,
Path modulesDirectory,
Path pluginsDirectory,
Collection<Class<? extends Plugin>> classpathPlugins)
Constructs a new PluginService
|
Modifier and Type | Method and Description |
---|---|
Collection<Module> |
indexModules(Settings indexSettings) |
Collection<Class<? extends Closeable>> |
indexServices() |
PluginsAndModules |
info()
Get information about plugins and modules
|
Collection<Module> |
nodeModules() |
Collection<Class<? extends LifecycleComponent>> |
nodeServices() |
void |
processModule(Module module) |
void |
processModules(Iterable<Module> modules) |
Collection<Module> |
shardModules(Settings indexSettings) |
Collection<Class<? extends Closeable>> |
shardServices() |
Settings |
updatedSettings() |
logDeprecatedSetting, logRemovedSetting, nodeName
public PluginsService(Settings settings, Path modulesDirectory, Path pluginsDirectory, Collection<Class<? extends Plugin>> classpathPlugins)
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 loadedpublic void processModule(Module module)
public Settings updatedSettings()
public Collection<Module> nodeModules()
public Collection<Class<? extends LifecycleComponent>> nodeServices()
public Collection<Module> indexModules(Settings indexSettings)
public Collection<Class<? extends Closeable>> indexServices()
public Collection<Module> shardModules(Settings indexSettings)
public Collection<Class<? extends Closeable>> shardServices()
public PluginsAndModules info()
Copyright © 2009–2016. All rights reserved.