5 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
7 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
8 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>
10 <c:import url="../template_header.jsp" >
11 <c:param name="title">Usage Statistics</c:param>
12 <c:param name="html_custom_css"><link href="${pageContext.request.contextPath}/static/css/table.css"
13 rel="stylesheet"></c:param>
16 <div class="row" id="mainpage">
17 <div class="col-md-12">
18 <div class="panel panel-default">
19 <div class="panel panel-heading">
20 <h1 class="panel-title">JABAWS Services Status</h1>
22 <div class="panel-body">
23 <div style="margin: 20px ">
25 <li><strong>Server:</strong> <a href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}">
26 ${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}
28 <li><strong>Time of execution:</strong> ${timeexec} sec</li>
29 <li><strong>Usage Statistics as of:</strong> ${timestamp}</li>
30 <li><a href="${pageContext.request.contextPath}/PublicAnnualStat" title="JABAWS server usage statistics."
31 id="show_hidden2"><i class="fa fa-bar-chart" aria-hidden="true"></i> Refresh Usage Statistics</a></li>
34 <table class="center its" style="width: 600px ">
37 <th rowspan="2">Month</th>
38 <th colspan="4" style="text-align: center">Number of Jobs</th>
41 <th title="Total number of jobs received">Total</th>
42 <th title="The number of jobs with no result">Incomplete</th>
43 <th title="The number of cancelled jobs">Cancelled</th>
44 <th title="The number of jobs started but not collected by the user">Abandoned</th>
49 <c:forEach items="${stat}" var="monthTotal" varStatus="status">
51 <c:when test="${status.count%2==0}">
61 <c:when test="${isAdmin}">
62 <a title="Click to view the detailed statistics for the period" href="DisplayStat?datetime=${monthTotal.key.time}"><fmt:formatDate value="${monthTotal.key}" type="date" pattern="MMM yyyy"/></a>
65 <fmt:formatDate value="${monthTotal.key}" type="date" pattern="MMM yyyy"/>
70 <td>${monthTotal.value.total}</td>
71 <td>${monthTotal.value.incomplete}</td>
72 <td>${monthTotal.value.cancelled}</td>
73 <td>${monthTotal.value.abandoned}</td>
76 <tr style="font-weight: bolder;">
78 <td>${total.total}</td>
79 <td>${total.incomplete}</td>
80 <td>${total.cancelled}</td>
81 <td>${total.abandoned}</td>
86 <div style="width: 600px">
89 The table contains the number of jobs processed by JABAWS per month, for the whole
90 period when the statistics was collected</p>
91 For each month the table contains the following information.
93 <li>The period of time for which statistics is displayed. For example Jan 2011 means period of time from the first of
94 January to the 31 of January.</li>
95 <li>Total - the total number of jobs accepted by JABAWS</li>
96 <li>Incomplete - the number of jobs for which the result file was not found or was empty excluding cancelled</li>
97 <li>Cancelled - the number of jobs cancelled by the user</li>
98 <li>Abandoned - the number of jobs which result(s) were not collected</li>
100 The summary for each column is displayed in the last row of the table.
101 </div> <!-- Help text enclosing dev end -->
102 <c:if test="${!isAdmin}">
103 <br/><p><a href="AnnualStat">Please login as administrator</a> to view the detailed statistics (<a href=docs/stats.html>help</a>)</p>
106 </div><!-- margin div -->
112 <jsp:include page="../template_footer.jsp" />