Search in sources :

Example 1 with ComputeElementInfo

use of models.datatable.ComputeSystemElementDataTable.ComputeElementInfo in project coprhd-controller by CoprHD.

the class ComputeSystems method computeElementsJson.

public static void computeElementsJson(String id) {
    List<ComputeElementInfo> results = Lists.newArrayList();
    List<ComputeElementRestRep> computeElements = ComputeSystemUtils.getComputeElements(id);
    String computeSystemName = ComputeSystemUtils.getComputeSystem(id).getName();
    for (ComputeElementRestRep computeElement : computeElements) {
        results.add(new ComputeElementInfo(computeElement, computeSystemName));
    }
    renderJSON(DataTablesSupport.createJSON(results, params));
}
Also used : ComputeElementInfo(models.datatable.ComputeSystemElementDataTable.ComputeElementInfo) ComputeElementRestRep(com.emc.storageos.model.compute.ComputeElementRestRep)

Aggregations

ComputeElementRestRep (com.emc.storageos.model.compute.ComputeElementRestRep)1 ComputeElementInfo (models.datatable.ComputeSystemElementDataTable.ComputeElementInfo)1