)
public static void getNodeAgentValues(HandlerContext handlerCtx){
String ndAgentName = (String) handlerCtx.getInputValue("NodeAgentName");
try{
boolean connected = false;
NodeAgentConfig agentConfig = AMXUtil.getDomainConfig().getNodeAgentConfigMap().get(ndAgentName);
Map<String, String> props = agentConfig.getProperties();
String agentStatus = agentConfig.getPropertyValue("rendezvousOccurred");
String hostName = GuiUtil.getMessage("nodeAgent.UnknownHost");
String status = null;
if(agentStatus.equalsIgnoreCase("true")){
hostName = agentConfig.getJMXConnectorConfig().getPropertyValue("client-hostname");
connected = true;
status = getStatusString(agentConfig.getName());
}else{
status = getWarningString(GuiUtil.getMessage("nodeAgent.awaitingInitialSync"));
}
handlerCtx.setOutputValue("HostName", hostName);
handlerCtx.setOutputValue("Status", status);
handlerCtx.setOutputValue("OnInstances", agentConfig.getStartServersInStartup());
handlerCtx.setOutputValue("Connected", connected);
handlerCtx.setOutputValue("Properties", props);
}catch(Exception ex){
GuiUtil.handleException(handlerCtx, ex);
}