public class NoopDiscoveryClient extends Object implements DiscoveryClient
Constructor and Description |
---|
NoopDiscoveryClient(ServiceInstance instance) |
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 NoopDiscoveryClient(ServiceInstance instance)
public String description()
DiscoveryClient
description
in interface DiscoveryClient
public ServiceInstance getLocalServiceInstance()
getLocalServiceInstance
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
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.