Search in sources :

Example 6 with EurekaConfigBasedInstanceInfoProvider

use of com.netflix.appinfo.providers.EurekaConfigBasedInstanceInfoProvider in project eureka by Netflix.

the class ExampleEurekaClient method initializeApplicationInfoManager.

private static synchronized ApplicationInfoManager initializeApplicationInfoManager(EurekaInstanceConfig instanceConfig) {
    if (applicationInfoManager == null) {
        InstanceInfo instanceInfo = new EurekaConfigBasedInstanceInfoProvider(instanceConfig).get();
        applicationInfoManager = new ApplicationInfoManager(instanceConfig, instanceInfo);
    }
    return applicationInfoManager;
}
Also used : EurekaConfigBasedInstanceInfoProvider(com.netflix.appinfo.providers.EurekaConfigBasedInstanceInfoProvider) InstanceInfo(com.netflix.appinfo.InstanceInfo) ApplicationInfoManager(com.netflix.appinfo.ApplicationInfoManager)

Aggregations

EurekaConfigBasedInstanceInfoProvider (com.netflix.appinfo.providers.EurekaConfigBasedInstanceInfoProvider)6 ApplicationInfoManager (com.netflix.appinfo.ApplicationInfoManager)5 InstanceInfo (com.netflix.appinfo.InstanceInfo)4 EurekaInstanceConfig (com.netflix.appinfo.EurekaInstanceConfig)2 CloudInstanceConfig (com.netflix.appinfo.CloudInstanceConfig)1 MyDataCenterInstanceConfig (com.netflix.appinfo.MyDataCenterInstanceConfig)1 DefaultEurekaClientConfig (com.netflix.discovery.DefaultEurekaClientConfig)1 DiscoveryClient (com.netflix.discovery.DiscoveryClient)1 EurekaClientConfig (com.netflix.discovery.EurekaClientConfig)1 DefaultEndpoint (com.netflix.discovery.shared.resolver.DefaultEndpoint)1 AwsBinderDelegate (com.netflix.eureka.aws.AwsBinderDelegate)1 PeerEurekaNodes (com.netflix.eureka.cluster.PeerEurekaNodes)1 AwsInstanceRegistry (com.netflix.eureka.registry.AwsInstanceRegistry)1 PeerAwareInstanceRegistry (com.netflix.eureka.registry.PeerAwareInstanceRegistry)1 PeerAwareInstanceRegistryImpl (com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl)1 DefaultServerCodecs (com.netflix.eureka.resources.DefaultServerCodecs)1 ServerCodecs (com.netflix.eureka.resources.ServerCodecs)1 Before (org.junit.Before)1 IocBean (org.nutz.ioc.loader.annotation.IocBean)1 EurekaInstanceConfigBean (org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean)1