use of com.hortonworks.streamline.streams.cluster.model.ServiceWithComponents in project streamline by hortonworks.
the class ServiceCatalogResource method buildManualServiceRegisterResult.
private ServiceWithComponents buildManualServiceRegisterResult(Service service) {
Collection<ServiceConfiguration> configurations = environmentService.listServiceConfigurations(service.getId());
Collection<Component> components = environmentService.listComponents(service.getId());
ServiceWithComponents s = new ServiceWithComponents(service);
s.setComponents(components);
s.setConfigurations(configurations);
return s;
}
use of com.hortonworks.streamline.streams.cluster.model.ServiceWithComponents in project streamline by hortonworks.
the class ClusterResourceUtil method enrichCluster.
public static ClusterServicesImportResult enrichCluster(Cluster cluster, EnvironmentService environmentService) {
ClusterServicesImportResult result = new ClusterServicesImportResult(cluster);
for (Service service : environmentService.listServices(cluster.getId())) {
Collection<ServiceConfiguration> configurations = environmentService.listServiceConfigurations(service.getId());
Collection<Component> components = environmentService.listComponents(service.getId());
ServiceWithComponents s = new ServiceWithComponents(service);
s.setComponents(components);
s.setConfigurations(configurations);
result.addService(s);
}
return result;
}
Aggregations