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);
}
Aggregations