List result = new ArrayList();
if(ndAgentName != null){
Map<String, ServerConfig> nodesInstances = getNodeAgentsInstances(ndAgentName);
Map <String, NodeAgentConfig> nodeAgentMap = AMXUtil.getDomainConfig().getNodeAgentConfigMap();
NodeAgentConfig agentConfig = nodeAgentMap.get(ndAgentName);
if(nodesInstances != null) {
for(String key : nodesInstances.keySet()){
HashMap oneRow = new HashMap();
ServerConfig serverConfig = nodesInstances.get(key);
String name = serverConfig.getName();
if(serverConfig instanceof ClusteredServerConfig){
ClusteredServerConfig conf = (ClusteredServerConfig)serverConfig;
String clusterName = EESupportHandlers.getClusterForServer(name);
oneRow.put("clusterName", clusterName);
oneRow.put("isCluster", true);
} else {
oneRow.put("clusterName", "");
oneRow.put("isCluster", false);
}
String configuration = serverConfig.getReferencedConfigName();
String status = agentConfig.getPropertyValue("rendezvousOccurred");
if (status.equalsIgnoreCase("false")) {
status = GuiUtil.getMessage("nodeAgent.notRunning");
}
status = AMXUtil.getStatusForDisplay(
AMXUtil.getJ2EEDomain().getJ2EEServerMap().get(name), true);