string AppServer상태표시(CommonLib.MsgAgentInfoToClient msg) { var AppServer통신가능_여부 = "N"; if (msg.Agent와AppServer통신가능_여부) { AppServer통신가능_여부 = "Y"; } return(string.Format("Agent-GameServer 통신:{0}", AppServer통신가능_여부)); }
static public CommonLib.MsgAgentInfoToClientList GetAgentInfoList() { var agentList = new CommonLib.MsgAgentInfoToClientList(); foreach (var agent in AgentMap.Values) { var status = new CommonLib.MsgAgentInfoToClient { ConnectionID = agent.connectionID, IPAddress = agent.IPAddress, AppServer실행중 = agent.GetAgentStatus().AppServer실행중, 전체_CPU_사용량 = agent.GetAgentStatus().전체_CPU_사용량, 프로세스_CPU_사용량 = agent.GetAgentStatus().프로세스_CPU_사용량, AppServer메모리_사용량 = agent.GetAgentStatus().AppServer메모리_사용량, Agent와AppServer통신가능_여부 = agent.GetAgentStatus().Agent와AppServer통신가능_여부, AppServer접속인원수 = agent.GetAgentStatus().AppServer접속인원수 }; agentList.list.Add(status); } return(agentList); }