Search in sources :

Example 1 with VcSummary

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;
}
Also used : SDDCSoftwareConfig(com.vmware.flowgate.common.model.SDDCSoftwareConfig) ArrayList(java.util.ArrayList) VcSummary(com.vmware.flowgate.common.model.VcSummary)

Aggregations

SDDCSoftwareConfig (com.vmware.flowgate.common.model.SDDCSoftwareConfig)1 VcSummary (com.vmware.flowgate.common.model.VcSummary)1 ArrayList (java.util.ArrayList)1