@Configuration @EnableConfigurationProperties @ConditionalOnClass(value=com.netflix.discovery.EurekaClientConfig.class) public class EurekaClientConfiguration extends Object implements org.springframework.context.SmartLifecycle, org.springframework.core.Ordered
Constructor and Description |
---|
EurekaClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected org.springframework.context.ApplicationListener<org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent> |
containerPortInitializer() |
com.netflix.discovery.DiscoveryClient |
discoveryClient() |
DiscoveryManagerIntitializer |
discoveryManagerIntitializer() |
EurekaHealthIndicator |
eurekaHealthIndicator(MBeanServer server,
com.netflix.appinfo.EurekaInstanceConfig config) |
int |
getOrder() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
@PreDestroy public void close()
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
public void stop(Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
@Bean @ConditionalOnMissingBean(value=DiscoveryManagerIntitializer.class) public DiscoveryManagerIntitializer discoveryManagerIntitializer()
@Bean @Lazy @Scope(proxyMode=TARGET_CLASS) public com.netflix.discovery.DiscoveryClient discoveryClient()
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=javax.management.MBeanServer.class) public EurekaHealthIndicator eurekaHealthIndicator(MBeanServer server, com.netflix.appinfo.EurekaInstanceConfig config)
@Bean protected org.springframework.context.ApplicationListener<org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent> containerPortInitializer()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.