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
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, onIndexModuleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.plugins.DiscoveryPlugin
getElectionStrategies, getJoinValidator
-
Field Details
-
EC2
public static final java.lang.String EC2- See Also:
- Constant Field Values
-
ec2Service
protected final org.opensearch.discovery.ec2.AwsEc2Service ec2Service
-
-
Constructor Details
-
Ec2DiscoveryPlugin
-
Ec2DiscoveryPlugin
protected Ec2DiscoveryPlugin(Settings settings, org.opensearch.discovery.ec2.AwsEc2ServiceImpl ec2Service)
-
-
Method Details
-
getCustomNameResolver
- 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
- Overrides:
getSettingsin classPlugin
-
additionalSettings
- Overrides:
additionalSettingsin classPlugin
-
close
public void close() throws java.io.IOException -
reload
- Specified by:
reloadin interfaceReloadablePlugin
-