Package org.opensearch.discovery.ec2
Class Ec2DiscoveryPlugin
- java.lang.Object
-
- org.opensearch.plugins.Plugin
-
- org.opensearch.discovery.ec2.Ec2DiscoveryPlugin
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,DiscoveryPlugin,ReloadablePlugin
public class Ec2DiscoveryPlugin extends Plugin implements DiscoveryPlugin, ReloadablePlugin
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEC2protected org.opensearch.discovery.ec2.AwsEc2Serviceec2Service
-
Constructor Summary
Constructors Modifier Constructor Description Ec2DiscoveryPlugin(Settings settings)protectedEc2DiscoveryPlugin(Settings settings, org.opensearch.discovery.ec2.AwsEc2ServiceImpl ec2Service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SettingsadditionalSettings()voidclose()NetworkService.CustomNameResolvergetCustomNameResolver(Settings settings)java.util.Map<java.lang.String,java.util.function.Supplier<SeedHostsProvider>>getSeedHostProviders(TransportService transportService, NetworkService networkService)java.util.List<Setting<?>>getSettings()voidreload(Settings settings)-
Methods inherited from class org.opensearch.plugins.Plugin
createComponents, createGuiceModules, getAdditionalIndexSettingProviders, getBootstrapChecks, getExecutorBuilders, getFeature, getGuiceServiceClasses, getIndexTemplateMetadataUpgrader, getNamedWriteables, getNamedXContent, getRoles, getSettingsFilter, getSettingUpgraders, onIndexModule
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.plugins.DiscoveryPlugin
getElectionStrategies, getJoinValidator
-
-
-
-
Field Detail
-
EC2
public static final java.lang.String EC2
- See Also:
- Constant Field Values
-
ec2Service
protected final org.opensearch.discovery.ec2.AwsEc2Service ec2Service
-
-
Method Detail
-
getCustomNameResolver
public NetworkService.CustomNameResolver getCustomNameResolver(Settings settings)
- Specified by:
getCustomNameResolverin interfaceDiscoveryPlugin
-
getSeedHostProviders
public java.util.Map<java.lang.String,java.util.function.Supplier<SeedHostsProvider>> getSeedHostProviders(TransportService transportService, NetworkService networkService)
- Specified by:
getSeedHostProvidersin interfaceDiscoveryPlugin
-
getSettings
public java.util.List<Setting<?>> getSettings()
- Overrides:
getSettingsin classPlugin
-
additionalSettings
public Settings additionalSettings()
- Overrides:
additionalSettingsin classPlugin
-
close
public void close() throws java.io.IOException
-
reload
public void reload(Settings settings)
- Specified by:
reloadin interfaceReloadablePlugin
-
-