|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.appinfo.ApplicationInfoManager
public class ApplicationInfoManager
The class that initializes information required for registration with Eureka Server and to be discovered by other components.
The information required for registration is provided by the user by passing
the configuration defined by the contract in EurekaInstanceConfig
}.AWS clients can either use or extend CloudInstanceConfig.Other non-AWS clients can use or extend either
MyDataCenterInstanceConfig or very basic
AbstractInstanceConfig.
| Method Summary | |
|---|---|
InstanceInfo |
getInfo()
Gets the information about this instance that is registered with eureka. |
static ApplicationInfoManager |
getInstance()
|
void |
initComponent(EurekaInstanceConfig config)
|
void |
refreshDataCenterInfoIfRequired()
Refetches the hostname to check if it has changed. |
void |
registerAppMetadata(java.util.Map<java.lang.String,java.lang.String> appMetadata)
Register user-specific instance meta data. |
void |
setInstanceStatus(InstanceInfo.InstanceStatus status)
Set the status of this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ApplicationInfoManager getInstance()
public void initComponent(EurekaInstanceConfig config)
public InstanceInfo getInfo()
public void registerAppMetadata(java.util.Map<java.lang.String,java.lang.String> appMetadata)
appMetadata - application specific meta data.public void setInstanceStatus(InstanceInfo.InstanceStatus status)
status - Status of the instancepublic void refreshDataCenterInfoIfRequired()
DataCenterInfo is refetched and passed on to the eureka
server on next heartbeat.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||