Package com.proofpoint.discovery.client

Examples of com.proofpoint.discovery.client.ServiceSelectorConfig


    {
        checkNotNull(serviceBalancerFactory, "serviceBalancerFactory is null");
        checkNotNull(injector, "injector is null");
        checkNotNull(nodeInfo, "nodeInfo is null");

        ServiceSelectorConfig selectorConfig = injector.getInstance(Key.get(ServiceSelectorConfig.class, serviceType(type)));

        HttpServiceBalancer serviceBalancer = serviceBalancerFactory.createHttpServiceBalancer(type, selectorConfig, nodeInfo);
        return serviceBalancer;
    }
View Full Code Here


        nodeInfo = new NodeInfo("environment");
        discoveryClient = new InMemoryDiscoveryClient(nodeInfo);
        httpServiceBalancer = mock(HttpServiceBalancerImpl.class);
        updater = new ServiceDescriptorsUpdater(new HttpServiceBalancerListenerAdapter(httpServiceBalancer),
                "apple",
                new ServiceSelectorConfig().setPool("pool"),
                nodeInfo,
                discoveryClient,
                executor);
    }
View Full Code Here

TOP

Related Classes of com.proofpoint.discovery.client.ServiceSelectorConfig

Copyright © 2018 www.massapicom. 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.