public class CompositeDiscoveryClient extends Object implements DiscoveryClient
DiscoveryClient
composed of other Discovery Client's and will delegate the
calls to each of them in orderConstructor 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)
Get all ServiceInstances associated with a particular serviceId
|
List<String> |
getServices() |
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 querypublic List<String> getServices()
getServices
in interface DiscoveryClient
public List<DiscoveryClient> getDiscoveryClients()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.