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 StubsRegistrar
protected String hostName(Map.Entry<StubConfiguration,Integer> entry)
protected int port(Map.Entry<StubConfiguration,Integer> entry)
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2016–2019 Spring. All rights reserved.