コード例 #1
0
 @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;
 }
コード例 #4
0
 public DiscoveryEnabledNIWSServerList(String vipAddresses) {
   IClientConfig clientConfig = DefaultClientConfigImpl.getClientConfigWithDefaultValues();
   clientConfig.set(Keys.DeploymentContextBasedVipAddresses, vipAddresses);
   initWithNiwsConfig(clientConfig);
 }