JWS-109 & JWS-116 Added the new chaching as new entries to index.jsp and the docs...
[jabaws.git] / website / statpages / ServicesStatus.jsp
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
3 <%--
4 Author: Peter Troshin
5 Date: May 2011
6 This is a JSP fragment to be inserted into document, cannot be used alone
7 TODO refactor
8 --%>
9 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
10 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
11 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
12 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>
13
14 <c:import url="../template_header.jsp" >
15         <c:param name="title">Service Status</c:param>
16         <c:param name="html_custom_css"><link href="${pageContext.request.contextPath}/static/css/table.css"
17                                                                                   rel="stylesheet"></c:param>
18 </c:import>
19
20 <%-- load cached Service Status --%>
21     <div class="row">
22         <div class="col-md-3"></div>
23         <div class="col-md-6">
24             <div class="center-block">
25                 <hidden_loader style="display:none;">
26                     <div class="alert alert-warning" role="alert">
27                         <p style="text-align: center; font-size: 16px">
28                             <img src="${pageContext.request.contextPath}/static/img/loader.gif" style="width:7%;height:7%">
29                             &nbsp;&nbsp;&nbsp;&nbsp;This request usually takes several minutes to be served...
30                         </p>
31                     </div>
32                 </hidden_loader>
33             </div>
34         </div>
35         <div class="col-md-3"></div>
36     </div>
37
38 <div class="row" id="mainpage">
39         <div class="col-md-12">
40                 <div class="panel panel-default">
41                         <div class="panel panel-heading">
42                                 <h1 class="panel-title">JABAWS Service Status</h1>
43                         </div>
44                         <div class="panel-body">
45
46                                 <div style="margin: 20px ">
47
48                                         <c:set var="host" value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}" />
49                                         <ul>
50                                                 <li>
51                                                         This servlet tests if the web services are healthy on the tomcat instance on which JABAWS is deployed. <br/>
52                                                         If the tomcat instance is mapped to another "proxy" web server, the servlet does not test availability of <br/>
53                                                         the web services at the endpoints of this external web server.</li>
54                                                 <%--<li>All the web services are tested while this page is being loaded.</li>--%>
55                                                 <%--<li>If you want to test the services again, reload this page.</li>--%>
56                                                 <li>Click on the service status to see the results of the testing.</li>
57                                                 <li><strong>Server:</strong> <a href="${host}">${host}</a> </li>
58                                                 <li><strong>Time of execution:</strong> ${timeexec} sec</li>
59                                                 <li><strong>Service Status as of:</strong> ${timestamp} (Refreshes every ${refreshfreq} minutes)</li>
60                                                 <li><a href="${pageContext.request.contextPath}/ServiceStatusRefresher" title="JABAWS web-services status."
61                                                    id="show_hidden1"><i class="fa fa-cogs" aria-hidden="true"></i> Refresh Service Status</a></li>
62                                                 <%--<li> Your IP is ${pageContext.request.remoteAddr}</li>--%>
63                                         </ul>
64                                         <br/>
65                                         <h3 style="text-align: center;color: green">
66                                                 Alignment Web Services
67                                         </h3>
68                                         <table class="its" >
69                                                 <thead>
70                                                 <tr>
71                                                         <th title="Service name" width="100px">Service</th>
72                                                         <th title="Service status">Version</th>
73                                                         <th title="Service status">Status</th>
74                                                         <th title="Service details">Reference and more details</th>
75                                                 </tr>
76                                                 </thead>
77                                                 <c:forEach items="${results}" var="res" varStatus="status">
78                                                         <c:if test="${res.group=='alignment'}">
79                                                                 <c:if test="${status.count%2==0}">
80                                                                         <tr class="even">
81                                                                 </c:if><c:if test="${status.count%2!=0}">
82                                                                 <tr class="odd">
83                                                         </c:if>
84                                                                 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
85                                                                 <td>${res.version}</td>
86                                                                 <c:if test="${res.status}">
87                                                                         <td><div class="source">
88                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
89                                                                                          title="Click to open/close"><span style="color: green">OK</span></div>
90                                                                                 <div class="body collapsed" style="max-width: 400px;">
91                                                                                         <pre>${res.details}</pre>
92                                                                                 </div></div></td>
93                                                                 </c:if>
94                                                                 <c:if test="${!res.status}">
95                                                                         <td><div class="source">
96                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
97                                                                                          title="Click to open/close"><span style="color: red">Fail</span></div>
98                                                                                 <div class="body collapsed" style="max-width: 400px;">
99                                                                                         <pre>${res.details}</pre>
100                                                                                 </div></div></td>
101                                                                 </c:if>
102                                                                 <td><div class="source">
103                                                                         <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
104                                                                                  title="Click to open/close"><span style="color: blue">INFO</span></div>
105                                                                         <div class="body collapsed" style="max-width: 500px;">
106                                                                                 <pre>${res.reference}</pre>
107                                                                         </div></div></td>
108                                                                 </tr>
109                                                         </c:if>
110                                                 </c:forEach>
111                                         </table>
112
113                                         <br/>
114                                         <br/>
115                                         <h3 style="text-align: center;color: green;">
116                                                 Disorder Web Services
117                                         </h3>
118                                         <table class="its" >
119                                                 <thead>
120                                                 <tr>
121                                                         <th title="Service name" width="100px">Service</th>
122                                                         <th title="Service status">Version</th>
123                                                         <th title="Service status">Status</th>
124                                                         <th title="Service details">Reference and more details</th>
125                                                 </tr>
126                                                 </thead>
127                                                 <c:forEach items="${results}" var="res" varStatus="status">
128                                                         <c:if test="${res.group=='disorder'}">
129                                                                 <c:if test="${status.count%2==0}">
130                                                                         <tr class="even">
131                                                                 </c:if><c:if test="${status.count%2!=0}">
132                                                                 <tr class="odd">
133                                                         </c:if>
134                                                                 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
135                                                                 <td>${res.version}</td>
136                                                                 <c:if test="${res.status}">
137                                                                         <td><div class="source">
138                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
139                                                                                          title="Click to open/close"><span style="color: green">OK</span></div>
140                                                                                 <div class="body collapsed" style="max-width: 400px;">
141                                                                                         <pre>${res.details}</pre>
142                                                                                 </div></div></td>
143                                                                 </c:if>
144                                                                 <c:if test="${!res.status}">
145                                                                         <td><div class="source">
146                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
147                                                                                          title="Click to open/close"><span style="color: red">Fail</span></div>
148                                                                                 <div class="body collapsed" style="max-width: 400px;">
149                                                                                         <pre>${res.details}</pre>
150                                                                                 </div></div></td>
151                                                                 </c:if>
152                                                                 <td><div class="source">
153                                                                         <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
154                                                                                  title="Click to open/close"><span style="color: blue">INFO</span></div>
155                                                                         <div class="body collapsed" style="max-width: 500px;">
156                                                                                 <pre>${res.reference}</pre>
157                                                                         </div></div></td>
158                                                                 </tr>
159                                                         </c:if>
160                                                 </c:forEach>
161                                         </table>
162
163                                         <br/>
164                                         <br/>
165                                         <h3 style="text-align: center;color: green;">
166                                                 Other Web Services
167                                         </h3>
168                                         <table class="its" >
169                                                 <thead>
170                                                 <tr>
171                                                         <th title="Service name" width="100px">Service</th>
172                                                         <th title="Service status">Version</th>
173                                                         <th title="Service status">Status</th>
174                                                         <th title="Service details">Reference and more details</th>
175                                                 </tr>
176                                                 </thead>
177                                                 <c:forEach items="${results}" var="res" varStatus="status">
178                                                         <c:if test="${res.group!='alignment' and res.group!='disorder'}">
179                                                                 <c:if test="${status.count%2==0}">
180                                                                         <tr class="even">
181                                                                 </c:if><c:if test="${status.count%2!=0}">
182                                                                 <tr class="odd">
183                                                         </c:if>
184                                                                 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
185                                                                 <td>${res.version}</td>
186                                                                 <c:if test="${res.status}">
187                                                                         <td><div class="source">
188                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
189                                                                                          title="Click to open/close"><span style="color: green">OK</span></div>
190                                                                                 <div class="body collapsed" style="max-width: 400px;">
191                                                                                         <pre>${res.details}</pre>
192                                                                                 </div></div></td>
193                                                                 </c:if>
194                                                                 <c:if test="${!res.status}">
195                                                                         <td><div class="source">
196                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
197                                                                                          title="Click to open/close"><span style="color: red">Fail</span></div>
198                                                                                 <div class="body collapsed" style="max-width: 400px;">
199                                                                                         <pre>${res.details}</pre>
200                                                                                 </div></div></td>
201                                                                 </c:if>
202                                                                 <td><div class="source">
203                                                                         <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
204                                                                                  title="Click to open/close"><span style="color: blue">INFO</span></div>
205                                                                         <div class="body collapsed" style="max-width: 500px;">
206                                                                                 <pre>${res.reference}</pre>
207                                                                         </div></div></td>
208                                                                 </tr>
209                                                         </c:if>
210                                                 </c:forEach>
211                                         </table>
212
213                                         <p>If you would like to integrate JABAWS with automated health check system you may want to use
214                                                 the HTTP code response service checker. It responds with HTTP status code depending on the status
215                                                 of the web service.
216                                                 For more information please refer to <a href="${pageContext.request.contextPath}/docs/advanced.html#testing-the-jabaws-server">
217                                                         Testing JABAWS server</a> help page.</p>
218                                 </div><!-- margin div -->
219                         </div>
220                 </div>
221         </div>
222 </div>
223
224 <jsp:include page="../template_footer.jsp" />