Class KubernetesDiscoveryClient

java.lang.Object
org.springframework.cloud.kubernetes.discovery.KubernetesDiscoveryClient
All Implemented Interfaces:
org.springframework.cloud.client.discovery.DiscoveryClient, org.springframework.core.Ordered

public class KubernetesDiscoveryClient extends Object implements org.springframework.cloud.client.discovery.DiscoveryClient
Author:
Ryan Baxter
  • Field Summary

    Fields inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient

    DEFAULT_ORDER

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    KubernetesDiscoveryClient(org.springframework.web.client.RestTemplate rest, KubernetesDiscoveryClientProperties properties)
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    List<org.springframework.cloud.client.ServiceInstance>
    getInstances(String serviceId)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient

    getOrder, probe
  • Constructor Details

  • Method Details

    • description

      public String description()
      Specified by:
      description in interface org.springframework.cloud.client.discovery.DiscoveryClient
    • getInstances

      public List<org.springframework.cloud.client.ServiceInstance> getInstances(String serviceId)
      Specified by:
      getInstances in interface org.springframework.cloud.client.discovery.DiscoveryClient
    • getServices

      public List<String> getServices()
      Specified by:
      getServices in interface org.springframework.cloud.client.discovery.DiscoveryClient