<%@ page contentType="text/xml; charset=utf-8"%> <%@ page import="com.eactive.eai.adapter.socket2.config.MonitoringUtil"%> <%@ page import="java.util.*,com.eactive.eai.common.util.Logger" %> <%! static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT); %> <% // // Socket2 status info String eaiSvrInstNm = request.getParameter("eaiSvrInstNm"); String adapterGroupName = request.getParameter("adapterGroupName"); if (eaiSvrInstNm == null) eaiSvrInstNm = ""; if (adapterGroupName == null) adapterGroupName = ""; String stateColor = ""; String stateText = ""; String startColor = ""; String startText = ""; String startStop = ""; String[][] arrList = null ; try { if(adapterGroupName.length() > 0) { arrList = MonitoringUtil.adapterStatus(adapterGroupName); } else { arrList = MonitoringUtil.adapterList1(); } } catch ( Exception e ) { if (logger.isError()){ logger.error(e.toString()); } } // ¸®ÅÏµÈ arrList °¡ null ÀÌ ¾Æ´Ï¸é¼­ ¹è¿­±æÀ̰¡ 0 ÀÎ °æ¿ì Exception ¹ß»ý // ÇÏÁö ¾Êµµ·Ï Çϱâ À§ÇÔ. (2008-06-30) if( arrList == null || arrList.length == 0 ) { %> <%=eaiSvrInstNm%> <% } else { int col = arrList[0].length ; int row = arrList.length ; for( int i = 0 ; i < row ; i++ ) { out.println(""); out.println("" + eaiSvrInstNm + ""); for( int j = 0 ; j < col ; j++ ) { if(j == 2) { out.println(""); } else { out.println("" + arrList[i][j] + ""); } } // ¹ö±×¼öÁ¤ if(arrList[i] != null && arrList[i].length > 4 ) { if( "STARTED".equals(arrList[i][7]) || "STARTING".equals(arrList[i][7])) { startStop = "03" ; // stop } else { startStop = "01" ; // start } } out.println(""+ startStop +""); out.println(""); } } %>