Class AzureSeedHostsProvider
- java.lang.Object
-
- org.opensearch.discovery.azure.classic.AzureSeedHostsProvider
-
- All Implemented Interfaces:
SeedHostsProvider
public class AzureSeedHostsProvider extends java.lang.Object implements SeedHostsProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAzureSeedHostsProvider.Deploymentstatic classAzureSeedHostsProvider.HostType-
Nested classes/interfaces inherited from interface org.opensearch.discovery.SeedHostsProvider
SeedHostsProvider.HostsResolver
-
-
Constructor Summary
Constructors Constructor Description AzureSeedHostsProvider(Settings settings, AzureComputeService azureComputeService, TransportService transportService, NetworkService networkService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TransportAddress>getSeedAddresses(SeedHostsProvider.HostsResolver hostsResolver)We build the list of Nodes from Azure Management API Information can be cached using `cloud.azure.refresh_interval` property if needed.protected java.lang.StringresolveInstanceAddress(AzureSeedHostsProvider.HostType hostType, com.microsoft.windowsazure.management.compute.models.RoleInstance instance)
-
-
-
Constructor Detail
-
AzureSeedHostsProvider
public AzureSeedHostsProvider(Settings settings, AzureComputeService azureComputeService, TransportService transportService, NetworkService networkService)
-
-
Method Detail
-
getSeedAddresses
public java.util.List<TransportAddress> getSeedAddresses(SeedHostsProvider.HostsResolver hostsResolver)
We build the list of Nodes from Azure Management API Information can be cached using `cloud.azure.refresh_interval` property if needed. Setting `cloud.azure.refresh_interval` to `-1` will cause infinite caching. Setting `cloud.azure.refresh_interval` to `0` will disable caching (default).- Specified by:
getSeedAddressesin interfaceSeedHostsProvider
-
resolveInstanceAddress
protected java.lang.String resolveInstanceAddress(AzureSeedHostsProvider.HostType hostType, com.microsoft.windowsazure.management.compute.models.RoleInstance instance)
-
-