public class EurekaStubsRegistrar extends Object implements StubsRegistrar
| Constructor and Description |
|---|
EurekaStubsRegistrar(StubRunning stubRunning,
org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration> serviceRegistry,
StubMapperProperties stubMapperProperties,
org.springframework.cloud.commons.util.InetUtils inetUtils,
org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean eurekaInstanceConfigBean,
org.springframework.cloud.netflix.eureka.EurekaClientConfigBean eurekaClientConfigBean,
org.springframework.context.ApplicationContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected String |
hostName(Map.Entry<StubConfiguration,Integer> entry) |
protected int |
port(Map.Entry<StubConfiguration,Integer> entry) |
void |
registerStubs() |
public EurekaStubsRegistrar(StubRunning stubRunning, org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration> serviceRegistry, StubMapperProperties stubMapperProperties, org.springframework.cloud.commons.util.InetUtils inetUtils, org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean eurekaInstanceConfigBean, org.springframework.cloud.netflix.eureka.EurekaClientConfigBean eurekaClientConfigBean, org.springframework.context.ApplicationContext context)
public void registerStubs()
registerStubs in interface StubsRegistrarprotected String hostName(Map.Entry<StubConfiguration,Integer> entry)
protected int port(Map.Entry<StubConfiguration,Integer> entry)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2016–2021 Spring. All rights reserved.