7c0fa769bf8745f0ed6076e639781956187528a5
[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 <div class="row" id="mainpage">
21         <div class="col-md-12">
22                 <div class="panel panel-default">
23                         <div class="panel panel-heading">
24                                 <h1 class="panel-title">JABAWS Service Status</h1>
25                         </div>
26                         <div class="panel-body">
27
28                                 <div style="margin: 20px ">
29
30                                         <c:set var="host" value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}" />
31
32                                         <ul>
33                                                 <li>
34                                                         This servlet tests if the web services are healthy on the tomcat instance on which JABAWS is deployed. <br/>
35                                                         If the tomcat instance is mapped to another "proxy" web server, the servlet does not test availability of <br/>
36                                                         the web services at the endpoints of this external web server.</li>
37                                                 <%--<li>All the web services are tested while this page is being loaded.</li>--%>
38                                                 <%--<li>If you want to test the services again, reload this page.</li>--%>
39                                                 <li>Click on the service status to see the results of the testing.</li>
40                                                 <li><strong>Server:</strong> <a href="${host}">${host}</a> </li>
41                                                 <li><strong>Time of execution:</strong> ${timeexec} sec</li>
42                                                 <li><strong>Service Status as of:</strong> ${timestamp}</li>
43                                                 <li><a href="${pageContext.request.contextPath}/ServiceStatus" title="JABAWS web-services status."
44                                                    id="show_hidden1"><i class="fa fa-cogs" aria-hidden="true"></i> Refresh Service Status</a></li>
45                                                 <%--<li> Your IP is ${pageContext.request.remoteAddr}</li>--%>
46                                         </ul>
47                                         <br/>
48                                         <h3 style="text-align: center;color: green">
49                                                 Alignment Web Services
50                                         </h3>
51                                         <table class="its" >
52                                                 <thead>
53                                                 <tr>
54                                                         <th title="Service name" width="100px">Service</th>
55                                                         <th title="Service status">Version</th>
56                                                         <th title="Service status">Status</th>
57                                                         <th title="Service details">Reference and more details</th>
58                                                 </tr>
59                                                 </thead>
60                                                 <c:forEach items="${results}" var="res" varStatus="status">
61                                                         <c:if test="${res.group=='alignment'}">
62                                                                 <c:if test="${status.count%2==0}">
63                                                                         <tr class="even">
64                                                                 </c:if><c:if test="${status.count%2!=0}">
65                                                                 <tr class="odd">
66                                                         </c:if>
67                                                                 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
68                                                                 <td>${res.version}</td>
69                                                                 <c:if test="${res.status}">
70                                                                         <td><div class="source">
71                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
72                                                                                          title="Click to open/close"><span style="color: green">OK</span></div>
73                                                                                 <div class="body collapsed" style="max-width: 400px;">
74                                                                                         <pre>${res.details}</pre>
75                                                                                 </div></div></td>
76                                                                 </c:if>
77                                                                 <c:if test="${!res.status}">
78                                                                         <td><div class="source">
79                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
80                                                                                          title="Click to open/close"><span style="color: red">Fail</span></div>
81                                                                                 <div class="body collapsed" style="max-width: 400px;">
82                                                                                         <pre>${res.details}</pre>
83                                                                                 </div></div></td>
84                                                                 </c:if>
85                                                                 <td><div class="source">
86                                                                         <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
87                                                                                  title="Click to open/close"><span style="color: brown">INFO</span></div>
88                                                                         <div class="body collapsed" style="max-width: 500px;">
89                                                                                 <pre>${res.reference}</pre>
90                                                                         </div></div></td>
91                                                                 </tr>
92                                                         </c:if>
93                                                 </c:forEach>
94                                         </table>
95
96                                         <br/>
97                                         <br/>
98                                         <h3 style="text-align: center;color: green;">
99                                                 Disorder Web Services
100                                         </h3>
101                                         <table class="its" >
102                                                 <thead>
103                                                 <tr>
104                                                         <th title="Service name" width="100px">Service</th>
105                                                         <th title="Service status">Version</th>
106                                                         <th title="Service status">Status</th>
107                                                         <th title="Service details">Reference and more details</th>
108                                                 </tr>
109                                                 </thead>
110                                                 <c:forEach items="${results}" var="res" varStatus="status">
111                                                         <c:if test="${res.group=='disorder'}">
112                                                                 <c:if test="${status.count%2==0}">
113                                                                         <tr class="even">
114                                                                 </c:if><c:if test="${status.count%2!=0}">
115                                                                 <tr class="odd">
116                                                         </c:if>
117                                                                 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
118                                                                 <td>${res.version}</td>
119                                                                 <c:if test="${res.status}">
120                                                                         <td><div class="source">
121                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
122                                                                                          title="Click to open/close"><span style="color: green">OK</span></div>
123                                                                                 <div class="body collapsed" style="max-width: 400px;">
124                                                                                         <pre>${res.details}</pre>
125                                                                                 </div></div></td>
126                                                                 </c:if>
127                                                                 <c:if test="${!res.status}">
128                                                                         <td><div class="source">
129                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
130                                                                                          title="Click to open/close"><span style="color: red">Fail</span></div>
131                                                                                 <div class="body collapsed" style="max-width: 400px;">
132                                                                                         <pre>${res.details}</pre>
133                                                                                 </div></div></td>
134                                                                 </c:if>
135                                                                 <td><div class="source">
136                                                                         <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
137                                                                                  title="Click to open/close"><span style="color: brown">INFO</span></div>
138                                                                         <div class="body collapsed" style="max-width: 500px;">
139                                                                                 <pre>${res.reference}</pre>
140                                                                         </div></div></td>
141                                                                 </tr>
142                                                         </c:if>
143                                                 </c:forEach>
144                                         </table>
145
146                                         <br/>
147                                         <br/>
148                                         <h3 style="text-align: center;color: green;">
149                                                 Other Web Services
150                                         </h3>
151                                         <table class="its" >
152                                                 <thead>
153                                                 <tr>
154                                                         <th title="Service name" width="100px">Service</th>
155                                                         <th title="Service status">Version</th>
156                                                         <th title="Service status">Status</th>
157                                                         <th title="Service details">Reference and more details</th>
158                                                 </tr>
159                                                 </thead>
160                                                 <c:forEach items="${results}" var="res" varStatus="status">
161                                                         <c:if test="${res.group!='alignment' and res.group!='disorder'}">
162                                                                 <c:if test="${status.count%2==0}">
163                                                                         <tr class="even">
164                                                                 </c:if><c:if test="${status.count%2!=0}">
165                                                                 <tr class="odd">
166                                                         </c:if>
167                                                                 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
168                                                                 <td>${res.version}</td>
169                                                                 <c:if test="${res.status}">
170                                                                         <td><div class="source">
171                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
172                                                                                          title="Click to open/close"><span style="color: green">OK</span></div>
173                                                                                 <div class="body collapsed" style="max-width: 400px;">
174                                                                                         <pre>${res.details}</pre>
175                                                                                 </div></div></td>
176                                                                 </c:if>
177                                                                 <c:if test="${!res.status}">
178                                                                         <td><div class="source">
179                                                                                 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
180                                                                                          title="Click to open/close"><span style="color: red">Fail</span></div>
181                                                                                 <div class="body collapsed" style="max-width: 400px;">
182                                                                                         <pre>${res.details}</pre>
183                                                                                 </div></div></td>
184                                                                 </c:if>
185                                                                 <td><div class="source">
186                                                                         <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
187                                                                                  title="Click to open/close"><span style="color: brown">INFO</span></div>
188                                                                         <div class="body collapsed" style="max-width: 500px;">
189                                                                                 <pre>${res.reference}</pre>
190                                                                         </div></div></td>
191                                                                 </tr>
192                                                         </c:if>
193                                                 </c:forEach>
194                                         </table>
195
196                                         <p>If you would like to integrate JABAWS with automated health check system you may want to use
197                                                 the HTTP code response service checker. It responds with HTTP status code depending on the status
198                                                 of the web service.
199                                                 For more information please refer to <a href="${pageContext.request.contextPath}/docs/advanced.html#testing-the-jabaws-server">
200                                                         Testing JABAWS server</a> help page.</p>
201                                 </div><!-- margin div -->
202                         </div>
203                 </div>
204         </div>
205 </div>
206
207 <jsp:include page="../template_footer.jsp" />