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