<%@ page import="java.io.*, java.util.*"%> <%@ page language="java" contentType="text/html;charset=utf-8"%> <%@ page import="com.eactive.eai.common.EAITable"%> <%@ page import="com.eactive.eai.common.message.EAIMessage"%> <%@ page import="com.eactive.eai.common.message.ServiceMessage"%> <%@ page import="com.eactive.eai.common.message.EAIMessageManager"%> <%@ page import="com.eactive.eai.common.monitor.EAIServiceMonitor"%> <%@ page import="com.eactive.eai.common.monitor.MonitorVO"%> <%@ page import="java.util.HashMap"%> <% EAIServiceMonitor monitor = EAIServiceMonitor.getInstance(); String[] voKey = monitor.getAllBwkClsKey(); String action = request.getParameter("actionType"); String[] pssCntKey = null; String[] pssErrCntKey = null; HashMap pssCnt = null; HashMap pssCntInPeriod = null; HashMap errPssCnt = null; HashMap errPssCntInPeriod = null; HashMap voByBwk = null; long[] verTotalByBwk = null;; long[] verTotalInPeriodByBwk = null; double sumOfprocessTimeByBwk = 0; double psvSumOfProcessTimeByBwk = 0; double sumOfprocessTimeInPeriodByBwk = 0; double psvSumOfProcessTimeInPeriodByBwk = 0; double avgOfprocessTimeByBwk = 0; double psvAvgOfProcessTimeByBwk = 0; double avgOfprocessTimeInPeriodByBwk = 0; double psvAvgOfProcessTimeInPeriodByBwk = 0; int countEaiSvcCd = 0; int countEaiSvcCdInPeriod = 0; String selectedBwkCls = request.getParameter("bwkCls"); if(selectedBwkCls == null && voKey.length>=1){ selectedBwkCls = voKey[0]; } if(selectedBwkCls!=null) { voByBwk = monitor.getBwkCls(selectedBwkCls); } %> 업무구분 코드/Log Sequence 별 통계 Monitor

업무구분 코드/Log Sequence 별 통계 데이터

 

<% if(voByBwk != null){ Iterator it = voByBwk.keySet().iterator(); String[] keys = new String[voByBwk.size()]; for(int i = 0; it.hasNext(); i++){ keys[i] = (String)it.next(); } Arrays.sort(keys); %> <% for(int j = 0; j< keys.length; j++){ MonitorVO vo = (MonitorVO)voByBwk.get(keys[j]); pssCntKey = vo.getAllPssCntKey(); pssCnt = vo.getPssCnt(); errPssCnt = vo.getErrPssCnt(); pssErrCntKey = vo.getAllErrPssCntKey(); //verTotalByBwk = new long[pssCntKey.length]; //verTotalInPeriodByBwk = new long[pssCntKey.length]; verTotalByBwk = new long[pssErrCntKey.length]; verTotalInPeriodByBwk = new long[pssErrCntKey.length]; if(pssCntKey != null && pssCntKey.length >0){ countEaiSvcCd ++; int pssCntKeyLength = pssCntKey.length; int pssErrCntKeyLength = pssErrCntKey.length; %> <% long[] verTotal = new long[pssErrCntKeyLength]; for(int i=0;i <% } %> <% for(int i=0;i <% } double avgOfprocessTime = 0; double psvAvgOfProcessTime = 0; if("AA".equalsIgnoreCase(vo.getIfType())){ if(Long.parseLong(pssCnt.get(pssCntKey[1]).toString()) >0 && vo.getSumOfprocessTime() > 0 ){ avgOfprocessTime = vo.getSumOfprocessTime()/1000/Long.parseLong(pssCnt.get(pssCntKey[1]).toString()); sumOfprocessTimeByBwk = sumOfprocessTimeByBwk + avgOfprocessTime; avgOfprocessTimeByBwk = sumOfprocessTimeByBwk / countEaiSvcCd; } if(Long.parseLong(pssCnt.get(pssCntKey[3]).toString()) >0 && vo.getSumOfprocessTime() > 0 ){ avgOfprocessTime = vo.getSumOfprocessTime()/1000/Long.parseLong(pssCnt.get(pssCntKey[3]).toString()); sumOfprocessTimeByBwk = sumOfprocessTimeByBwk + avgOfprocessTime; avgOfprocessTimeByBwk = sumOfprocessTimeByBwk / countEaiSvcCd; } } else{ if(Long.parseLong(pssCnt.get(pssCntKey[3]).toString()) >0 && vo.getSumOfprocessTime() > 0 ){ avgOfprocessTime = vo.getSumOfprocessTime()/1000/Long.parseLong(pssCnt.get(pssCntKey[3]).toString()); } sumOfprocessTimeByBwk = sumOfprocessTimeByBwk + avgOfprocessTime; avgOfprocessTimeByBwk = sumOfprocessTimeByBwk / countEaiSvcCd; } if(Long.parseLong(pssCnt.get(pssCntKey[2]).toString()) > 0 && vo.getPsvSumOfPssTime() > 0 ){ psvAvgOfProcessTime = vo.getPsvSumOfPssTime()/1000/Long.parseLong(pssCnt.get(pssCntKey[2]).toString()); psvSumOfProcessTimeByBwk = psvSumOfProcessTimeByBwk + psvAvgOfProcessTime; psvAvgOfProcessTimeByBwk = psvSumOfProcessTimeByBwk / countEaiSvcCd; } %> <% for(int i=0;i <% } %> <% for(int i=0;i <% } %> <% } } %> <% for(int i=0;i <% } %>
   일일 통계
 EAI Service Code  <%=keys[j]%>
구분 Log Sequence 별 처리 누적 EAI 시스템 평균 처리시간(초) 수동 시스템 평균 처리시간(초)
<%=pssErrCntKey[i]%>
정상       
에러 
합계
 합계    

<% for(int j = 0; j< keys.length; j++){ MonitorVO vo = (MonitorVO)voByBwk.get(keys[j]); pssCntKey = vo.getAllPssCntKey(); pssCntInPeriod = vo.getPssCntInPeriod(); errPssCntInPeriod = vo.getErrPssCntInPeriod(); pssErrCntKey = vo.getAllErrPssCntKey(); if(pssCntKey != null && pssCntKey.length >0){ countEaiSvcCdInPeriod++; int pssCntKeyLength = pssCntKey.length; int pssErrCntKeyLength = pssErrCntKey.length; %> <% long[] verInPeriodTotal = new long[pssErrCntKeyLength]; for(int i=0;i <% } %> <% for(int i=0;i <% } double avgOfprocessTimeInPeriod = 0; double psvAvgOfProcessTimeInPeriod = 0; if("AA".equalsIgnoreCase(vo.getIfType())){ if(Long.parseLong(pssCntInPeriod.get(pssCntKey[1]).toString()) >0 && vo.getSumOfProcessTimeInPeriod() > 0){ avgOfprocessTimeInPeriod = vo.getSumOfProcessTimeInPeriod()/1000/Long.parseLong(pssCntInPeriod.get(pssCntKey[1]).toString()); sumOfprocessTimeInPeriodByBwk = sumOfprocessTimeInPeriodByBwk + avgOfprocessTimeInPeriod; avgOfprocessTimeInPeriodByBwk = sumOfprocessTimeInPeriodByBwk / countEaiSvcCdInPeriod; } if(Long.parseLong(pssCntInPeriod.get(pssCntKey[3]).toString()) >0 && vo.getSumOfProcessTimeInPeriod() > 0){ avgOfprocessTimeInPeriod = vo.getSumOfProcessTimeInPeriod()/1000/Long.parseLong(pssCntInPeriod.get(pssCntKey[3]).toString()); sumOfprocessTimeInPeriodByBwk = sumOfprocessTimeInPeriodByBwk + avgOfprocessTimeInPeriod; avgOfprocessTimeInPeriodByBwk = sumOfprocessTimeInPeriodByBwk / countEaiSvcCdInPeriod; } } else{ if(Long.parseLong(pssCntInPeriod.get(pssCntKey[3]).toString()) >0 && vo.getSumOfProcessTimeInPeriod() > 0){ avgOfprocessTimeInPeriod = vo.getSumOfProcessTimeInPeriod()/1000/Long.parseLong(pssCntInPeriod.get(pssCntKey[3]).toString()); sumOfprocessTimeInPeriodByBwk = sumOfprocessTimeInPeriodByBwk + avgOfprocessTimeInPeriod; avgOfprocessTimeInPeriodByBwk = sumOfprocessTimeInPeriodByBwk / countEaiSvcCdInPeriod; } } if(Long.parseLong(pssCntInPeriod.get(pssCntKey[2]).toString()) >0 && vo.getPsvSumOfPssTimeInPeriod() > 0){ psvAvgOfProcessTimeInPeriod = vo.getPsvSumOfPssTimeInPeriod()/1000/Long.parseLong(pssCntInPeriod.get(pssCntKey[2]).toString()); psvSumOfProcessTimeInPeriodByBwk = psvSumOfProcessTimeInPeriodByBwk + psvAvgOfProcessTimeInPeriod; psvAvgOfProcessTimeInPeriodByBwk = psvSumOfProcessTimeInPeriodByBwk / countEaiSvcCdInPeriod; } %> <% for(int i=0;i <% } %> <% for(int i=0;i <% } %> <% } } %> <% for(int i=0;i <% } %>
   최근시간 통계
   EAI Service Code  <%=keys[j]%>
구분 Log Sequence 별 처리 누적 EAI 시스템 평균 처리시간(초) 수동 시스템 평균 처리시간(초)
<%=pssErrCntKey[i]%>
정상       
에러 
합계
 합계    
<% }else{ %> 해당 업무 구분에 대한 거래 내역이 없습니다. <% } %>