public class K8sUnicastHostsProvider
extends org.elasticsearch.common.component.AbstractComponent
implements org.elasticsearch.discovery.zen.ping.unicast.UnicastHostsProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
K8sUnicastHostsProvider.Fields |
| Constructor and Description |
|---|
K8sUnicastHostsProvider(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.transport.TransportService transportService,
org.elasticsearch.common.network.NetworkService networkService) |
| Modifier and Type | Method and Description |
|---|---|
List<org.elasticsearch.cluster.node.DiscoveryNode> |
buildDynamicNodes()
We build the list of Nodes from Kubernetes API
Information can be cached using `plugins.refresh_interval` property if needed.
|
@Inject
public K8sUnicastHostsProvider(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.transport.TransportService transportService,
org.elasticsearch.common.network.NetworkService networkService)
public List<org.elasticsearch.cluster.node.DiscoveryNode> buildDynamicNodes()
buildDynamicNodes in interface org.elasticsearch.discovery.zen.ping.unicast.UnicastHostsProviderCopyright © 2013-2015. All Rights Reserved.