use of com.sequenceiq.cloudbreak.template.views.ClusterExposedServiceView in project cloudbreak by hortonworks.
the class ServiceEndpointCollector method prepareClusterExposedServicesViews.
public Map<String, Collection<ClusterExposedServiceView>> prepareClusterExposedServicesViews(Cluster cluster, String managerIp) {
Map<String, Collection<ClusterExposedServiceView>> result = new HashMap<>();
for (Map.Entry<String, Collection<ClusterExposedServiceV4Response>> entry : prepareClusterExposedServices(cluster, managerIp).entrySet()) {
Set<ClusterExposedServiceView> views = new HashSet<>();
for (ClusterExposedServiceV4Response response : entry.getValue()) {
views.add(new ClusterExposedServiceView(response.getServiceName(), response.getDisplayName(), response.getKnoxService(), response.getServiceUrl()));
}
result.put(entry.getKey(), views);
}
return result;
}
Aggregations