Examples of IClientConfig


Examples of com.netflix.client.config.IClientConfig

        throw Throwables.propagate(e);
      }
    }

    private LBClient lbClient(String clientName) {
      IClientConfig config = ClientFactory.getNamedConfig(clientName);
      ILoadBalancer lb = ClientFactory.getNamedLoadBalancer(clientName);
      return new LBClient(delegate, lb, config);
    }
View Full Code Here

Examples of com.netflix.client.config.IClientConfig

    public SmartHttpClient(String name, SmartClientConfig smartConfig) {
        if (name == null) name = CLIENT_NAME + '_' + clientCount.incrementAndGet();

        // Initialize config properties
        IClientConfig nfConfig = ClientFactory.getNamedConfig(name);
        initConfig(nfConfig, smartConfig);

        // Pull Ribbon's HttpClient instance (it collects metrics for the LB). This will pull our initialized config by
        // name
        this.delegateClient = NFHttpClientFactory.getNamedNFHttpClient(name, nfConfig);
View Full Code Here

Examples of com.netflix.client.config.IClientConfig

        }
        if (serverList.isEmpty()) {
            throw new IllegalArgumentException("empty server list");
        }

        IClientConfig loadBalancerConfig = new DefaultClientConfigImpl();
        loadBalancerConfig.loadProperties("suroClient");
    loadBalancerConfig.setProperty(CommonClientConfigKey.NFLoadBalancerPingClassName, "com.netflix.suro.connection.SuroPing");
        super.initWithNiwsConfig(loadBalancerConfig);
        addServers(serverList);
    }
View Full Code Here

Examples of com.netflix.client.config.IClientConfig

                    "EurekaLoadBalancer server should be formatted vipAddress:port ('%s')",
                    config.getLoadBalancerServer()));
        }

        this.port = Integer.parseInt(vipAddress_port[1]);
        IClientConfig loadBalancerConfig = new DefaultClientConfigImpl();
        loadBalancerConfig.loadProperties("suroClient");
        loadBalancerConfig.setProperty(CommonClientConfigKey.DeploymentContextBasedVipAddresses, vipAddress_port[0]);
        loadBalancerConfig.setProperty(CommonClientConfigKey.NIWSServerListClassName, DiscoveryEnabledNIWSServerList.class.getName());
        super.initWithNiwsConfig(loadBalancerConfig);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.