public class PluginsService extends AbstractComponent
Modifier and Type | Field and Description |
---|---|
static String |
ES_PLUGIN_PROPERTIES |
static String |
ES_PLUGIN_PROPERTIES_FILE_KEY |
static String |
LOAD_PLUGIN_FROM_CLASSPATH |
componentSettings, logger, settings
Constructor and Description |
---|
PluginsService(Settings settings,
Environment environment)
Constructs a new PluginService
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkLuceneCompatibility(Class<? extends Plugin> pluginClass,
Settings settings,
ESLogger logger,
String propertiesFile)
Check that a plugin is Lucene compatible with the current running node using `lucene` property
in `es-plugin.properties` file.
|
Collection<Class<? extends Module>> |
indexModules() |
Collection<Module> |
indexModules(Settings settings) |
Collection<Class<? extends CloseableIndexComponent>> |
indexServices() |
PluginsInfo |
info()
Get information about plugins (jvm and site plugins).
|
Collection<Class<? extends Module>> |
modules() |
Collection<Module> |
modules(Settings settings) |
com.google.common.collect.ImmutableList<Tuple<PluginInfo,Plugin>> |
plugins() |
void |
processModule(Module module) |
void |
processModules(Iterable<Module> modules) |
Collection<Class<? extends LifecycleComponent>> |
services() |
Collection<Class<? extends Module>> |
shardModules() |
Collection<Module> |
shardModules(Settings settings) |
Collection<Class<? extends CloseableIndexComponent>> |
shardServices() |
Settings |
updatedSettings() |
nodeName
public static final String ES_PLUGIN_PROPERTIES_FILE_KEY
public static final String ES_PLUGIN_PROPERTIES
public static final String LOAD_PLUGIN_FROM_CLASSPATH
public PluginsService(Settings settings, Environment environment)
settings
- The settings of the systemenvironment
- The environment of the systempublic com.google.common.collect.ImmutableList<Tuple<PluginInfo,Plugin>> plugins()
public void processModule(Module module)
public Settings updatedSettings()
public Collection<Class<? extends Module>> modules()
public Collection<Module> modules(Settings settings)
public Collection<Class<? extends LifecycleComponent>> services()
public Collection<Class<? extends Module>> indexModules()
public Collection<Module> indexModules(Settings settings)
public Collection<Class<? extends CloseableIndexComponent>> indexServices()
public Collection<Class<? extends Module>> shardModules()
public Collection<Module> shardModules(Settings settings)
public Collection<Class<? extends CloseableIndexComponent>> shardServices()
public PluginsInfo info()
public static boolean checkLuceneCompatibility(Class<? extends Plugin> pluginClass, Settings settings, ESLogger logger, String propertiesFile)
Check that a plugin is Lucene compatible with the current running node using `lucene` property in `es-plugin.properties` file.
If plugin does not provide `lucene` property, we consider that the plugin is compatible.
If plugin provides `lucene` property, we try to load related Enum org.apache.lucene.util.Version. If this fails, it means that the node is too "old" comparing to the Lucene version the plugin was built for.
We compare then two first digits of current node lucene version against two first digits of plugin Lucene version. If not equal, it means that the plugin is too "old" for the current node.
pluginClass
- Plugin class we are checkingCopyright © 2009–2015. All rights reserved.