@Singleton public class DefaultEurekaServerContext extends java.lang.Object implements EurekaServerContext
| Constructor and Description |
|---|
DefaultEurekaServerContext(EurekaServerConfig serverConfig,
ServerCodecs serverCodecs,
PeerAwareInstanceRegistry registry,
PeerEurekaNodes peerEurekaNodes,
com.netflix.appinfo.ApplicationInfoManager applicationInfoManager) |
| Modifier and Type | Method and Description |
|---|---|
com.netflix.appinfo.ApplicationInfoManager |
getApplicationInfoManager() |
PeerEurekaNodes |
getPeerEurekaNodes() |
PeerAwareInstanceRegistry |
getRegistry() |
ServerCodecs |
getServerCodecs() |
EurekaServerConfig |
getServerConfig() |
void |
initialize() |
void |
shutdown() |
@Inject public DefaultEurekaServerContext(EurekaServerConfig serverConfig, ServerCodecs serverCodecs, PeerAwareInstanceRegistry registry, PeerEurekaNodes peerEurekaNodes, com.netflix.appinfo.ApplicationInfoManager applicationInfoManager)
@PostConstruct
public void initialize()
throws java.lang.Exception
initialize in interface EurekaServerContextjava.lang.Exception@PreDestroy
public void shutdown()
throws java.lang.Exception
shutdown in interface EurekaServerContextjava.lang.Exceptionpublic EurekaServerConfig getServerConfig()
getServerConfig in interface EurekaServerContextpublic PeerEurekaNodes getPeerEurekaNodes()
getPeerEurekaNodes in interface EurekaServerContextpublic ServerCodecs getServerCodecs()
getServerCodecs in interface EurekaServerContextpublic PeerAwareInstanceRegistry getRegistry()
getRegistry in interface EurekaServerContextpublic com.netflix.appinfo.ApplicationInfoManager getApplicationInfoManager()
getApplicationInfoManager in interface EurekaServerContext