private void queryNodesStatus(CmClusterDef cluster) {
for (CmNodeDef node : cluster.getNodes()) {
Map<String, NodeReport> nodeReports = cluster.getCurrentReport().getNodeReports();
NodeReport nodeReport = nodeReports.get(node.getName());
try {
ApiHost host = apiResourceRootV6.getHostsResource().readHost(node.getNodeId());
ApiHealthSummary health = host.getHealthSummary();
switch(health) {
case GOOD:
List<ApiRoleRef> roleRefs = host.getRoleRefs();
boolean hasStarted = false;
boolean hasStopped = false;
for (ApiRoleRef roleRef : roleRefs) {
if (isRoleStarted(roleRef.getClusterName(),
roleRef.getServiceName(), roleRef.getRoleName())) {