public class StubRunnerDiscoveryClient extends Object implements org.springframework.cloud.client.discovery.DiscoveryClient
DiscoveryClient
that tries to find an instance
in one of the started WireMock serversConstructor and Description |
---|
StubRunnerDiscoveryClient(org.springframework.cloud.client.discovery.DiscoveryClient delegate,
org.springframework.cloud.contract.stubrunner.StubFinder stubFinder,
StubMapperProperties stubMapperProperties,
String springAppName) |
Modifier and Type | Method and Description |
---|---|
String |
description() |
List<org.springframework.cloud.client.ServiceInstance> |
getInstances(String serviceId) |
org.springframework.cloud.client.ServiceInstance |
getLocalServiceInstance() |
List<String> |
getServices() |
public StubRunnerDiscoveryClient(org.springframework.cloud.client.discovery.DiscoveryClient delegate, org.springframework.cloud.contract.stubrunner.StubFinder stubFinder, StubMapperProperties stubMapperProperties, String springAppName)
public String description()
description
in interface org.springframework.cloud.client.discovery.DiscoveryClient
public org.springframework.cloud.client.ServiceInstance getLocalServiceInstance()
getLocalServiceInstance
in interface org.springframework.cloud.client.discovery.DiscoveryClient
public List<org.springframework.cloud.client.ServiceInstance> getInstances(String serviceId)
getInstances
in interface org.springframework.cloud.client.discovery.DiscoveryClient
Copyright © 2016 Spring. All rights reserved.