Class EurekaServerBootstrap
java.lang.Object
org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap
- Author:
- Spencer Gibb, Weix Sun
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.netflix.appinfo.ApplicationInfoManager
protected com.netflix.eureka.aws.AwsBinder
protected com.netflix.discovery.EurekaClientConfig
protected com.netflix.eureka.EurekaServerConfig
protected com.netflix.eureka.registry.PeerAwareInstanceRegistry
protected com.netflix.eureka.EurekaServerContext
-
Constructor Summary
ConstructorDescriptionEurekaServerBootstrap
(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) -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(javax.servlet.ServletContext context) void
contextInitialized
(javax.servlet.ServletContext context) protected void
Users can override to clean up the environment themselves.protected void
Server context shutdown hook.protected void
protected boolean
isAws
(com.netflix.appinfo.InstanceInfo selfInstanceInfo)
-
Field Details
-
eurekaServerConfig
protected com.netflix.eureka.EurekaServerConfig eurekaServerConfig -
applicationInfoManager
protected com.netflix.appinfo.ApplicationInfoManager applicationInfoManager -
eurekaClientConfig
protected com.netflix.discovery.EurekaClientConfig eurekaClientConfig -
registry
protected com.netflix.eureka.registry.PeerAwareInstanceRegistry registry -
serverContext
protected volatile com.netflix.eureka.EurekaServerContext serverContext -
awsBinder
protected volatile com.netflix.eureka.aws.AwsBinder awsBinder
-
-
Constructor Details
-
EurekaServerBootstrap
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)
-
-
Method Details
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContext context) -
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContext context) -
initEurekaServerContext
- Throws:
Exception
-
destroyEurekaServerContext
Server context shutdown hook. Override for custom logic- Throws:
Exception
- - callingAwsBinder.shutdown()
orEurekaServerContext.shutdown()
may result in an exception
-
destroyEurekaEnvironment
Users can override to clean up the environment themselves.- Throws:
Exception
- - shutting down Eureka servers may result in an exception
-
isAws
protected boolean isAws(com.netflix.appinfo.InstanceInfo selfInstanceInfo)
-