public class CompositeDiscoveryClient extends Object implements DiscoveryClient
DiscoveryClient
that is composed of other discovery clients and delegates
calls to each of them in order.DEFAULT_ORDER
Constructor and Description |
---|
CompositeDiscoveryClient(List<DiscoveryClient> discoveryClients) |
Modifier and Type | Method and Description |
---|---|
String |
description()
A human-readable description of the implementation, used in HealthIndicator.
|
List<DiscoveryClient> |
getDiscoveryClients() |
List<ServiceInstance> |
getInstances(String serviceId)
Gets all ServiceInstances associated with a particular serviceId.
|
List<String> |
getServices() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrder
public CompositeDiscoveryClient(List<DiscoveryClient> discoveryClients)
public String description()
DiscoveryClient
description
in interface DiscoveryClient
public List<ServiceInstance> getInstances(String serviceId)
DiscoveryClient
getInstances
in interface DiscoveryClient
serviceId
- The serviceId to query.public List<String> getServices()
getServices
in interface DiscoveryClient
public List<DiscoveryClient> getDiscoveryClients()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.