Class EurekaServerBootstrap

java.lang.Object
org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap

public class EurekaServerBootstrap extends Object
Author:
Spencer Gibb, Weix Sun
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected 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

    Constructors
    Constructor
    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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contextDestroyed(jakarta.servlet.ServletContext context)
     
    void
    contextInitialized(jakarta.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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected void initEurekaServerContext() throws Exception
      Throws:
      Exception
    • destroyEurekaServerContext

      protected void destroyEurekaServerContext() throws Exception
      Server context shutdown hook. Override for custom logic
      Throws:
      Exception - - calling AwsBinder.shutdown() or EurekaServerContext.shutdown() may result in an exception
    • destroyEurekaEnvironment

      protected void destroyEurekaEnvironment() throws Exception
      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)