Search in sources :

Example 1 with NodeServicesDataTable

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();
}
Also used : NodeServicesDataTable(models.datatable.NodeServicesDataTable) ServiceHealth(com.emc.vipr.model.sys.healthmonitor.ServiceHealth) NodeHealth(com.emc.vipr.model.sys.healthmonitor.NodeHealth)

Aggregations

NodeHealth (com.emc.vipr.model.sys.healthmonitor.NodeHealth)1 ServiceHealth (com.emc.vipr.model.sys.healthmonitor.ServiceHealth)1 NodeServicesDataTable (models.datatable.NodeServicesDataTable)1