Search in sources :

Example 1 with JaxRsStrategyFactory

use of com.yahoo.vespa.jaxrs.client.JaxRsStrategyFactory in project vespa by vespa-engine.

the class RetryingClusterControllerClientFactory method createClient.

@Override
public ClusterControllerClient createClient(List<HostName> clusterControllers, String clusterName) {
    Set<HostName> clusterControllerSet = clusterControllers.stream().collect(Collectors.toSet());
    JaxRsStrategy<ClusterControllerJaxRsApi> jaxRsApi = new JaxRsStrategyFactory(clusterControllerSet, HARDCODED_CLUSTERCONTROLLER_PORT, jaxRsClientFactory, CLUSTERCONTROLLER_SCHEME).apiWithRetries(ClusterControllerJaxRsApi.class, CLUSTERCONTROLLER_API_PATH);
    return new ClusterControllerClientImpl(jaxRsApi, clusterName);
}
Also used : JaxRsStrategyFactory(com.yahoo.vespa.jaxrs.client.JaxRsStrategyFactory) HostName(com.yahoo.vespa.applicationmodel.HostName)

Aggregations

HostName (com.yahoo.vespa.applicationmodel.HostName)1 JaxRsStrategyFactory (com.yahoo.vespa.jaxrs.client.JaxRsStrategyFactory)1