public class ConsulDiscoveryClient extends Object implements org.springframework.cloud.client.discovery.DiscoveryClient
Constructor and Description |
---|
ConsulDiscoveryClient(com.ecwid.consul.v1.ConsulClient client,
ConsulLifecycle lifecycle,
ConsulDiscoveryProperties properties) |
Modifier and Type | Method and Description |
---|---|
String |
description() |
List<org.springframework.cloud.client.ServiceInstance> |
getAllInstances() |
List<org.springframework.cloud.client.ServiceInstance> |
getInstances(String serviceId) |
List<org.springframework.cloud.client.ServiceInstance> |
getInstances(String serviceId,
com.ecwid.consul.v1.QueryParams queryParams) |
org.springframework.cloud.client.ServiceInstance |
getLocalServiceInstance() |
List<String> |
getServices() |
void |
setServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties) |
public ConsulDiscoveryClient(com.ecwid.consul.v1.ConsulClient client, ConsulLifecycle lifecycle, ConsulDiscoveryProperties properties)
public void setServerProperties(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
public String description()
description
in interface org.springframework.cloud.client.discovery.DiscoveryClient
public org.springframework.cloud.client.ServiceInstance getLocalServiceInstance()
getLocalServiceInstance
in interface org.springframework.cloud.client.discovery.DiscoveryClient
public List<org.springframework.cloud.client.ServiceInstance> getInstances(String serviceId)
getInstances
in interface org.springframework.cloud.client.discovery.DiscoveryClient
public List<org.springframework.cloud.client.ServiceInstance> getInstances(String serviceId, com.ecwid.consul.v1.QueryParams queryParams)
public List<org.springframework.cloud.client.ServiceInstance> getAllInstances()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.