Package org.elasticsearch.test.discovery
Class TestZenDiscovery.TestPlugin
- java.lang.Object
-
- org.elasticsearch.plugins.Plugin
-
- org.elasticsearch.test.discovery.TestZenDiscovery.TestPlugin
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,DiscoveryPlugin
- Enclosing class:
- TestZenDiscovery
public static class TestZenDiscovery.TestPlugin extends Plugin implements DiscoveryPlugin
A plugin which installs mock discovery and configures it to be used.
-
-
Constructor Summary
Constructors Constructor Description TestPlugin(Settings settings)
-
Method Summary
Modifier and Type Method Description SettingsadditionalSettings()java.util.Map<java.lang.String,java.util.function.Supplier<Discovery>>getDiscoveryTypes(ThreadPool threadPool, TransportService transportService, NamedWriteableRegistry namedWriteableRegistry, MasterService masterService, ClusterApplier clusterApplier, ClusterSettings clusterSettings, UnicastHostsProvider hostsProvider, AllocationService allocationService)java.util.List<Setting<?>>getSettings()-
Methods inherited from class org.elasticsearch.plugins.Plugin
close, createComponents, createGuiceModules, getBootstrapChecks, getCustomMetaDataUpgrader, getExecutorBuilders, getFeature, getGuiceServiceClasses, getIndexMetaDataUpgrader, getIndexTemplateMetaDataUpgrader, getNamedWriteables, getNamedXContent, getSettingsFilter, getSettingUpgraders, onIndexModule, onModule, onModule, onModule, onModule, onModule, onModule, onModule, onModule, onModule, onModule
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.plugins.DiscoveryPlugin
getCustomNameResolver, getJoinValidator, getZenHostsProviders
-
-
-
-
Field Detail
-
settings
protected final Settings settings
-
-
Constructor Detail
-
TestPlugin
public TestPlugin(Settings settings)
-
-
Method Detail
-
getDiscoveryTypes
public java.util.Map<java.lang.String,java.util.function.Supplier<Discovery>> getDiscoveryTypes(ThreadPool threadPool, TransportService transportService, NamedWriteableRegistry namedWriteableRegistry, MasterService masterService, ClusterApplier clusterApplier, ClusterSettings clusterSettings, UnicastHostsProvider hostsProvider, AllocationService allocationService)
- Specified by:
getDiscoveryTypesin interfaceDiscoveryPlugin
-
getSettings
public java.util.List<Setting<?>> getSettings()
- Overrides:
getSettingsin classPlugin
-
additionalSettings
public Settings additionalSettings()
- Overrides:
additionalSettingsin classPlugin
-
-