@Bean
 @ConditionalOnMissingBean
 public IClientConfig ribbonClientConfig() {
   DefaultClientConfigImpl config = new DefaultClientConfigImpl();
   config.loadProperties(this.name);
   return config;
 }
예제 #2
0
 private LoadBalancingHttpClient<ByteBuf, ByteBuf> createEddaClient() {
   final IClientConfig config =
       DefaultClientConfigImpl.getClientConfigWithDefaultValues(EDDA_CLIENT_NAME);
   return RibbonTransport.newHttpClient(config);
 }
예제 #3
0
 public static DefaultClientConfigImpl getClientConfigWithDefaultValues(
     String clientName, String nameSpace) {
   DefaultClientConfigImpl config = new DefaultClientConfigImpl(nameSpace);
   config.loadProperties(clientName);
   return config;
 }
 public DiscoveryEnabledNIWSServerList(String vipAddresses) {
   IClientConfig clientConfig = DefaultClientConfigImpl.getClientConfigWithDefaultValues();
   clientConfig.set(Keys.DeploymentContextBasedVipAddresses, vipAddresses);
   initWithNiwsConfig(clientConfig);
 }