use of com.vmware.flowgate.common.model.VcSummary in project flowgate by vmware.
the class SummaryService method getVcSummaryList.
public List<VcSummary> getVcSummaryList() {
List<VcSummary> vcSummary = new ArrayList<>();
List<SDDCSoftwareConfig> sddcSoftwareConfigs = sddcrpeo.findAllByType(SoftwareType.VCENTER.name());
for (SDDCSoftwareConfig s : sddcSoftwareConfigs) {
VcSummary vc = new VcSummary();
vc.setName(s.getName());
vc.setUrl(s.getServerURL());
vc.setHostsNum(summaryRepository.countServerMappingByVC(s.getId()));
vcSummary.add(vc);
}
return vcSummary;
}
Aggregations