Class EurekaServerBootstrap
java.lang.Object
org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap
- Author:
- Spencer Gibb, Weix Sun
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.netflix.appinfo.ApplicationInfoManagerprotected com.netflix.eureka.aws.AwsBinderprotected com.netflix.discovery.EurekaClientConfigprotected com.netflix.eureka.EurekaServerConfigprotected com.netflix.eureka.registry.PeerAwareInstanceRegistryprotected com.netflix.eureka.EurekaServerContext -
Constructor Summary
ConstructorsConstructorDescriptionEurekaServerBootstrap(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 TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContext context) voidcontextInitialized(jakarta.servlet.ServletContext context) protected voidUsers can override to clean up the environment themselves.protected voidServer context shutdown hook.protected voidprotected booleanisAws(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(jakarta.servlet.ServletContext context) -
contextDestroyed
public void contextDestroyed(jakarta.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)
-