Package com.netflix.eureka
Class DefaultEurekaServerContext
- java.lang.Object
-
- com.netflix.eureka.DefaultEurekaServerContext
-
- All Implemented Interfaces:
EurekaServerContext
@Singleton public class DefaultEurekaServerContext extends java.lang.Object implements EurekaServerContext
Represent the local server context and exposes getters to components of the local server such as the registry.
-
-
Constructor Summary
Constructors Constructor Description DefaultEurekaServerContext(EurekaServerConfig serverConfig, ServerCodecs serverCodecs, PeerAwareInstanceRegistry registry, PeerEurekaNodes peerEurekaNodes, com.netflix.appinfo.ApplicationInfoManager applicationInfoManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.netflix.appinfo.ApplicationInfoManager
getApplicationInfoManager()
PeerEurekaNodes
getPeerEurekaNodes()
PeerAwareInstanceRegistry
getRegistry()
ServerCodecs
getServerCodecs()
EurekaServerConfig
getServerConfig()
void
initialize()
void
shutdown()
-
-
-
Constructor Detail
-
DefaultEurekaServerContext
@Inject public DefaultEurekaServerContext(EurekaServerConfig serverConfig, ServerCodecs serverCodecs, PeerAwareInstanceRegistry registry, PeerEurekaNodes peerEurekaNodes, com.netflix.appinfo.ApplicationInfoManager applicationInfoManager)
-
-
Method Detail
-
initialize
@PostConstruct public void initialize()
- Specified by:
initialize
in interfaceEurekaServerContext
-
shutdown
@PreDestroy public void shutdown()
- Specified by:
shutdown
in interfaceEurekaServerContext
-
getServerConfig
public EurekaServerConfig getServerConfig()
- Specified by:
getServerConfig
in interfaceEurekaServerContext
-
getPeerEurekaNodes
public PeerEurekaNodes getPeerEurekaNodes()
- Specified by:
getPeerEurekaNodes
in interfaceEurekaServerContext
-
getServerCodecs
public ServerCodecs getServerCodecs()
- Specified by:
getServerCodecs
in interfaceEurekaServerContext
-
getRegistry
public PeerAwareInstanceRegistry getRegistry()
- Specified by:
getRegistry
in interfaceEurekaServerContext
-
getApplicationInfoManager
public com.netflix.appinfo.ApplicationInfoManager getApplicationInfoManager()
- Specified by:
getApplicationInfoManager
in interfaceEurekaServerContext
-
-