public class EurekaServerBootstrap extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.netflix.appinfo.ApplicationInfoManager |
applicationInfoManager |
protected com.netflix.eureka.aws.AwsBinder |
awsBinder |
protected com.netflix.discovery.EurekaClientConfig |
eurekaClientConfig |
protected com.netflix.eureka.EurekaServerConfig |
eurekaServerConfig |
protected com.netflix.eureka.registry.PeerAwareInstanceRegistry |
registry |
protected com.netflix.eureka.EurekaServerContext |
serverContext |
| Constructor and Description |
|---|
EurekaServerBootstrap(com.netflix.appinfo.ApplicationInfoManager applicationInfoManager,
com.netflix.discovery.EurekaClientConfig eurekaClientConfig,
com.netflix.eureka.EurekaServerConfig eurekaServerConfig,
com.netflix.eureka.registry.PeerAwareInstanceRegistry registry,
com.netflix.eureka.EurekaServerContext serverContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContext context) |
void |
contextInitialized(javax.servlet.ServletContext context) |
protected void |
destroyEurekaEnvironment()
Users can override to clean up the environment themselves.
|
protected void |
destroyEurekaServerContext()
Server context shutdown hook.
|
protected void |
initEurekaEnvironment() |
protected void |
initEurekaServerContext() |
protected boolean |
isAws(com.netflix.appinfo.InstanceInfo selfInstanceInfo) |
protected com.netflix.eureka.EurekaServerConfig eurekaServerConfig
protected com.netflix.appinfo.ApplicationInfoManager applicationInfoManager
protected com.netflix.discovery.EurekaClientConfig eurekaClientConfig
protected com.netflix.eureka.registry.PeerAwareInstanceRegistry registry
protected volatile com.netflix.eureka.EurekaServerContext serverContext
protected volatile com.netflix.eureka.aws.AwsBinder awsBinder
public EurekaServerBootstrap(com.netflix.appinfo.ApplicationInfoManager applicationInfoManager,
com.netflix.discovery.EurekaClientConfig eurekaClientConfig,
com.netflix.eureka.EurekaServerConfig eurekaServerConfig,
com.netflix.eureka.registry.PeerAwareInstanceRegistry registry,
com.netflix.eureka.EurekaServerContext serverContext)
public void contextInitialized(javax.servlet.ServletContext context)
public void contextDestroyed(javax.servlet.ServletContext context)
protected void destroyEurekaServerContext()
throws Exception
Exception - - calling AwsBinder.shutdown() or
EurekaServerContext.shutdown() may result in an exceptionprotected void destroyEurekaEnvironment()
throws Exception
Exception - - shutting down Eureka servers may result in an exceptionprotected boolean isAws(com.netflix.appinfo.InstanceInfo selfInstanceInfo)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.