public class SimpleDiscoveryClient extends Object implements DiscoveryClient
DiscoveryClient that will use the
properties file as a source of service instances| Constructor and Description |
|---|
SimpleDiscoveryClient(SimpleDiscoveryProperties simpleDiscoveryProperties) |
| Modifier and Type | Method and Description |
|---|---|
String |
description()
A human readable description of the implementation, used in HealthIndicator
|
List<ServiceInstance> |
getInstances(String serviceId)
Get all ServiceInstances associated with a particular serviceId
|
ServiceInstance |
getLocalServiceInstance() |
List<String> |
getServices() |
public SimpleDiscoveryClient(SimpleDiscoveryProperties simpleDiscoveryProperties)
public String description()
DiscoveryClientdescription in interface DiscoveryClientpublic ServiceInstance getLocalServiceInstance()
getLocalServiceInstance in interface DiscoveryClientpublic List<ServiceInstance> getInstances(String serviceId)
DiscoveryClientgetInstances in interface DiscoveryClientserviceId - the serviceId to querypublic List<String> getServices()
getServices in interface DiscoveryClientCopyright © 2018 Pivotal Software, Inc.. All rights reserved.