com.netflix.eureka
Class EurekaBootStrap
java.lang.Object
com.netflix.eureka.EurekaBootStrap
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
public class EurekaBootStrap
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
The class that kick starts the eureka server.
The eureka server is configured by using the configuration
EurekaServerConfig specified by eureka.server.props in the
classpath.The eureka client component is also initialized by using the
configuration EurekaInstanceConfig specified by
eureka.client.props. If the server runs in the AWS cloud, the eurea
server binds it to the elastic ip as specified.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EurekaBootStrap
public EurekaBootStrap()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
initEurekaEnvironment
protected void initEurekaEnvironment()
- Users can override to initialize the environment themselves.
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
destroyEurekaEnvironment
protected void destroyEurekaEnvironment()
- Users can override to clean up the environment themselves.