| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- <%@ include file="../common/header.jsp" %>
- <script type="text/javascript">
- <!--
- function chart(title, id, ts, raw) {
- var data = new Array();
- var rl = raw.length;
- for (var i=0,il=raw.length; i<il; i++) {
- data.push([i, raw[i]]);
- }
- var myChart = new JSChart(id, 'line');
- myChart.setTitle(title);
- myChart.setSize(800, 600);
- myChart.setDataArray(data);
- myChart.setIntervalStartX(0);
- myChart.setIntervalEndX(rl);
- myChart.setShowXValues(false);
- myChart.setAxisNameX('Time');
- myChart.setAxisNameY('');
- var time = new Date(ts);
- var hs = time.getHours() * 60 + time.getMinutes();
- var hsm = Math.floor(hs / 120) * 120;
- var p = hs - hsm;
- hsm += 1440;
- for (var i=0; i<24; i++) {
- var m = hsm % 60;
- var h = (hsm / 60) % 24;
- var s = (h > 9 ? h : '0'+h) + ':' + (m > 9 ? m : '0'+m);
- myChart.setLabelX([p, s]);
- hsm -= 120;
- p += 120;
- }
- myChart.draw();
- }
-
- function doStart(adaptorId){
- document.forms.monitor.action.value="start";
- document.forms.monitor.clear.value="true";
- document.forms.monitor.adaptorId.value=adaptorId;
- document.forms.monitor.submit();
- }
-
- function doStop(adaptorId){
- document.forms.monitor.action.value="stop";
- document.forms.monitor.clear.value="true";
- document.forms.monitor.adaptorId.value=adaptorId;
- document.forms.monitor.submit();
- }
-
- function doKill(correlId,adaptorId){
- document.forms.monitor.action.value="kill";
- document.forms.monitor.clear.value="true";
- document.forms.monitor.correlId.value=correlId;
- document.forms.monitor.adaptorId.value=adaptorId;
- document.forms.monitor.submit();
- }
-
- -->
- </script>
- <form name="monitor" method="post" action="monitor.do">
- <input type="hidden" name="start" value="">
- <input type="hidden" name="startx" value="">
- <input type="hidden" name="action" value="">
- <input type="hidden" name="code" value="">
- <input type="hidden" name="adaptorId" value="">
- <input type="hidden" name="correlId" value="">
- <input type="hidden" name="count" value="">
- <input type="hidden" name="clear" value="">
-
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.monitor.key"/> - LIST</td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="1" cellpadding="1">
- <logic:notEmpty name="monitorList">
- <logic:iterate id="element" name="monitorList" scope="request" indexId="index">
- <tr>
- <logic:notEmpty name="element" property="broker">
- <td width="20%" align="left" height="10" valign="top" class="titleField">Broker</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="executionGroup">
- <td width="20%" align="left" height="10" valign="top" class="titleField">
- Execution Group
- <input type="button" value="Start" onclick="javascript:doStart('<bean:write name="element" property="executionGroup"/>');">
-
- <input type="button" value="Stop" onclick="javascript:doStop();">
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="flow">
- <td width="20%" align="left" height="10" valign="top" class="titleField">Flow</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="idTcp">
- <td width="20%" align="left" height="10" valign="top" class="titleField">Id</td>
- </logic:notEmpty>
- </tr>
- <tr>
- <td width="10%" align="left" valign="top"></td>
- <logic:notEmpty name="element" property="group">
- <td width="20%" align="left" height="10" valign="top" class="titleField">Group</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="idServerPort">
- <td width="20%" align="left" height="10" valign="top" class="titleField">Id</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="port">
- <td width="20%" align="left" height="10" valign="top" class="titleField">
- Port
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="statusServerPort">
- <td width="20%" align="left" height="10" valign="top" class="titleField">Status</td>
- </logic:notEmpty>
- </tr>
- <tr>
- <td width="10%" align="left" valign="top"></td>
- <td width="10%" align="left" valign="top"></td>
- <logic:notEmpty name="element" property="ckd">
- <td width="10%" align="left" height="10" valign="top" class="titleField">Ckd</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="connectTime">
- <td width="20%" align="left" height="10" valign="top" class="titleField">Connect Time</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="corellationId">
- <td width="10%" align="left" height="10" valign="top" class="titleField">
- Corellation ID
- <input type="button" value="Start" onclick="javascript:doKill('<bean:write name="element" property="corellationId"/>,<bean:write name="element" property="executionGroup"/>');">
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="idChannel">
- <td width="10%" align="left" height="10" valign="top" class="titleField">Id</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="incomingCount">
- <td width="5%" align="left" height="10" valign="top" class="titleField">Incoming Count</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="lastActivity">
- <td width="20%" align="left" height="10" valign="top" class="titleField">Last Activity</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="outgoingCount">
- <td width="5%" align="left" height="10" valign="top" class="titleField">Outgoing Count</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="signOn">
- <td width="10%" align="left" height="10" valign="top" class="titleField">Sign On</td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="statusChannel">
- <td width="10%" align="left" height="10" valign="top" class="titleField">Status</td>
- </logic:notEmpty>
- </tr>
- <tr>
- <logic:notEmpty name="element" property="broker">
- <td align="left" class="celBorder">
- <bean:write name="element" property="broker"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="executionGroup">
- <td align="left" class="celBorder">
- <bean:write name="element" property="executionGroup"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="flow">
- <td align="left" class="celBorder">
- <bean:write name="element" property="flow"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="idTcp">
- <td align="left" class="celBorder">
- <bean:write name="element" property="idTcp"/>
- </td>
- </logic:notEmpty>
- </tr>
- <tr>
- <td align="left"></td>
- <logic:notEmpty name="element" property="group">
- <td align="left" class="celBorder">
- <bean:write name="element" property="group"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="idServerPort">
- <td align="left" class="celBorder">
- <bean:write name="element" property="idServerPort"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="port">
- <td align="left" class="celBorder">
- <bean:write name="element" property="port"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="statusServerPort">
- <td align="left" class="celBorder">
- <bean:write name="element" property="statusServerPort"/>
- </td>
- </logic:notEmpty>
- </tr>
- <tr>
- <td align="left"></td>
- <td align="left"></td>
- <logic:notEmpty name="element" property="ckd">
- <td align="left" class="celBorder">
- <bean:write name="element" property="ckd"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="connectTime">
- <td align="left" class="celBorder">
- <bean:write name="element" property="connectTime"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="corellationId">
- <td align="left" class="celBorder">
- <bean:write name="element" property="corellationId"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="idChannel">
- <td align="left" class="celBorder">
- <bean:write name="element" property="idChannel"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="incomingCount">
- <td align="left" class="celBorder">
- <bean:write name="element" property="incomingCount"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="lastActivity">
- <td align="left" class="celBorder">
- <bean:write name="element" property="lastActivity"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="outgoingCount">
- <td align="left" class="celBorder">
- <bean:write name="element" property="outgoingCount"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="signOn">
- <td align="left" class="celBorder">
- <bean:write name="element" property="signOn"/>
- </td>
- </logic:notEmpty>
- <logic:notEmpty name="element" property="statusChannel">
- <td align="left" class="celBorder">
- <bean:write name="element" property="statusChannel"/>
- </td>
- </logic:notEmpty>
- </tr>
- </logic:iterate>
- </logic:notEmpty>
- </table>
- </form>
- <%@ include file="../common/footer.jsp" %>
|