Class ZookeeperDiscoveryClient
java.lang.Object
org.springframework.cloud.zookeeper.discovery.ZookeeperDiscoveryClient
- All Implemented Interfaces:
org.springframework.cloud.client.discovery.DiscoveryClient,org.springframework.core.Ordered
public class ZookeeperDiscoveryClient
extends Object
implements org.springframework.cloud.client.discovery.DiscoveryClient
Zookeeper version of
DiscoveryClient. Capable of resolving aliases from
ZookeeperDependencies to service names in Zookeeper.- Since:
- 1.0.0
- Author:
- Spencer Gibb, Marcin Grzejszczak, Olga Maciaszek-Sharma
-
Field Summary
Fields inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient
DEFAULT_ORDERFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionZookeeperDiscoveryClient(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery, ZookeeperDependencies zookeeperDependencies, ZookeeperDiscoveryProperties zookeeperDiscoveryProperties) -
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.cloud.client.ServiceInstance>getInstances(String serviceId) intgetOrder()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient
probe
-
Constructor Details
-
ZookeeperDiscoveryClient
public ZookeeperDiscoveryClient(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery, ZookeeperDependencies zookeeperDependencies, ZookeeperDiscoveryProperties zookeeperDiscoveryProperties)
-
-
Method Details
-
description
- Specified by:
descriptionin interfaceorg.springframework.cloud.client.discovery.DiscoveryClient
-
getInstances
- Specified by:
getInstancesin interfaceorg.springframework.cloud.client.discovery.DiscoveryClient
-
getServices
- Specified by:
getServicesin interfaceorg.springframework.cloud.client.discovery.DiscoveryClient
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.cloud.client.discovery.DiscoveryClient- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-