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, waitgetOrder, probepublic CompositeDiscoveryClient(List<DiscoveryClient> discoveryClients)
public String description()
DiscoveryClientdescription in interface DiscoveryClientpublic List<ServiceInstance> getInstances(String serviceId)
DiscoveryClientgetInstances in interface DiscoveryClientserviceId - The serviceId to query.public List<String> getServices()
getServices in interface DiscoveryClientpublic List<DiscoveryClient> getDiscoveryClients()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.