public class EtcdDiscoveryClient extends Object implements org.springframework.cloud.client.discovery.DiscoveryClient, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
EtcdDiscoveryClient(mousio.etcd4j.EtcdClient etcd,
EtcdLifecycle lifecycle,
EtcdDiscoveryProperties properties) |
Modifier and Type | Method and Description |
---|---|
String |
description() |
boolean |
equals(Object o) |
org.springframework.context.ApplicationContext |
getContext() |
List<org.springframework.cloud.client.ServiceInstance> |
getInstances(String serviceId) |
EtcdLifecycle |
getLifecycle() |
org.springframework.cloud.client.ServiceInstance |
getLocalServiceInstance() |
EtcdDiscoveryProperties |
getProperties() |
List<String> |
getServices() |
int |
hashCode() |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setContext(org.springframework.context.ApplicationContext context) |
String |
toString() |
public EtcdDiscoveryClient(mousio.etcd4j.EtcdClient etcd, EtcdLifecycle lifecycle, EtcdDiscoveryProperties properties)
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<String> getServices()
getServices
in interface org.springframework.cloud.client.discovery.DiscoveryClient
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public EtcdLifecycle getLifecycle()
public EtcdDiscoveryProperties getProperties()
public org.springframework.context.ApplicationContext getContext()
public void setContext(org.springframework.context.ApplicationContext context)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.