use of models.datatable.NodeServicesDataTable in project coprhd-controller by CoprHD.
the class SystemHealth method services.
public static void services(String nodeId) {
NodeHealth nodeHealth = MonitorUtils.getNodeHealth(nodeId);
if (nodeHealth != null) {
List<ServiceHealth> serviceHealthList = nodeHealth.getServiceHealthList();
if (!serviceHealthList.isEmpty()) {
renderArgs.put("dataTable", new NodeServicesDataTable());
angularRenderArgs().put("nodeStatus", nodeHealth.getStatus());
angularRenderArgs().put("serviceCount", serviceHealthList.size());
angularRenderArgs().put("statusCount", getStatusCount(serviceHealthList));
angularRenderArgs().put("nodeId", nodeId);
angularRenderArgs().put("nodeName", nodeHealth.getNodeName());
render(nodeId);
} else {
flash.error(Messages.get("system.node.services.error", nodeHealth.getNodeName()));
}
} else {
Logger.warn("Could not determine node name.");
flash.error(Messages.get("system.node.error", nodeId));
}
systemHealth();
}
Aggregations