From e51027f0a37ad021873e8b70640ad8b438df2279 Mon Sep 17 00:00:00 2001 From: =?utf8?q?F=C3=A1bio=20Madeira?= Date: Mon, 13 Feb 2017 17:35:11 +0000 Subject: [PATCH] =?utf8?q?JWS-111=20&=20JWS-109=20Re-uploading=20improved=20?= =?utf8?q?=E2=80=98Service=20Status=E2=80=99=20and=20=E2=80=98Usage=20Statis?= =?utf8?q?tics=E2=80=99=20pages=20that=20use=20the=20template=20header=20and?= =?utf8?q?=20footer,=20as=20well=20as=20the=20bootstrap=20look.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- website/statpages/Joblist.jsp | 104 +++++++++++++++++ website/statpages/MonthlySummary.jsp | 109 ++++++++++++++++++ website/statpages/ServicesStatus.jsp | 204 +++++++++++++++++++++++++++++++++ website/statpages/Statistics.jsp | 69 +++++++++++ website/statpages/StatisticsTable.jsp | 55 +++++++++ 5 files changed, 541 insertions(+) create mode 100644 website/statpages/Joblist.jsp create mode 100644 website/statpages/MonthlySummary.jsp create mode 100644 website/statpages/ServicesStatus.jsp create mode 100644 website/statpages/Statistics.jsp create mode 100644 website/statpages/StatisticsTable.jsp diff --git a/website/statpages/Joblist.jsp b/website/statpages/Joblist.jsp new file mode 100644 index 0000000..5fcd831 --- /dev/null +++ b/website/statpages/Joblist.jsp @@ -0,0 +1,104 @@ + +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<%-- +Author: Peter Troshin +Date: May 2011 +--%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %> + + + JABAWS Usage Statistics + + + +
+
+
+
+

JABAWS Services Status

+
+
+ + JABAWS Jobs List (detailed column description) + + + + ${job.jobname} + + + ${job.jobname} + + + + + + + + + + ? + + + <1 + + + ${job.runtime} + + + + + + + + ${job.isCancelled} + + + ${job.isCollected} + + + + + + + + + + + + + + + + + + + + Columns +
    +
  • JobID - the JABAWS job id, unique for every job
  • +
  • Cluster JobID - cluster job id
  • +
  • InputSize - input size in bytes
  • +
  • ResultSize - result size in bytes
  • +
  • Runtime (s) - job's runtime in seconds
  • +
  • Start time (s)- job's start time and date
  • +
  • Finish time (s)- job's finish time and date
  • +
  • isCancelled - whether the job was cancelled
  • +
  • isCollected - whether the job was collected. False for the jobs that + has been initiated but which results has never been retrieved
  • +
  • isFinished - whether the job has finished. This does not necessarily mean that the + job has produced the result. The job can sometime finish in failure.
  • +
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/website/statpages/MonthlySummary.jsp b/website/statpages/MonthlySummary.jsp new file mode 100644 index 0000000..1aecb93 --- /dev/null +++ b/website/statpages/MonthlySummary.jsp @@ -0,0 +1,109 @@ +<%-- +Author: Peter Troshin +Date: May 2011 +--%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %> + + + JABAWS Usage Statistics + + + +
+
+
+
+

JABAWS Services Status

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MonthNumber of Jobs
TotalIncompleteCancelledAbandoned
+ + + + + + + + + + ${monthTotal.value.total}${monthTotal.value.incomplete}${monthTotal.value.cancelled}${monthTotal.value.abandoned}
Total:${total.total}${total.incomplete}${total.cancelled}${total.abandoned}
+ +
+

Help

+

+ The table contains the number of jobs processed by JABAWS per month, for the whole + period when the statistics was collected

+ For each month the table contains the following information. +
    +
  • The period of time for which statistics is displayed. For example Jan 2011 means period of time from the first of + January to the 31 of January.
  • +
  • Total - the total number of jobs accepted by JABAWS
  • +
  • Incomplete - the number of jobs for which the result file was not found or was empty excluding cancelled
  • +
  • Cancelled - the number of jobs cancelled by the user
  • +
  • Abandoned - the number of jobs which result(s) were not collected
  • +
+ The summary for each column is displayed in the last row of the table. +
+ +

Please login as administrator to view the detailed statistics (help)

+
+ +
+
+
+
+
+ + \ No newline at end of file diff --git a/website/statpages/ServicesStatus.jsp b/website/statpages/ServicesStatus.jsp new file mode 100644 index 0000000..174ca2e --- /dev/null +++ b/website/statpages/ServicesStatus.jsp @@ -0,0 +1,204 @@ + +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> +<%-- +Author: Peter Troshin +Date: May 2011 +This is a JSP fragment to be inserted into document, cannot be used alone +TODO refactor +--%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %> + + + JABAWS Web Services Status + + + +
+
+
+
+

JABAWS Services Status

+
+
+ +
+ + + +
    +
  • + This servlet tests if the web services are healthy on the tomcat instance on which JABAWS is deployed.
    + If the tomcat instance is mapped to another "proxy" web server, the servlet does not test availability of
    + the web services at the endpoints of this external web server.
  • +
  • All the web services are tested while this page is being loaded.
  • +
  • If you want to test the services again, reload this page.
  • +
  • Click on the service status to see the results of the testing.
  • +
  • Server tested: ${host}
  • +
  • Time of execusion: ${timeexec} msec
  • +
  • Your IP is ${pageContext.request.remoteAddr}
  • +
+
+

+ Alignment Web Services +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ServiceVersionStatusReference and more details
${res.service}${res.version}
+ +
+ +
+ +
+ +
+
+

+ Disorder Web Services +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ServiceVersionStatusReference and more details
${res.service}${res.version}
+ +
+ +
+ +
+ +
+
+

+ Other Web Services +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ServiceVersionStatusReference and more details
${res.service}${res.version}
+ +
+ +
+ +
+ +

If you would like to integrate JABAWS with automated health check system you may want to use + the HTTP code response service checker. It responds with HTTP status code depending on the status + of the web service. + For more information please refer to + Testing JABAWS server help page.

+
+
+
+
+
+ + diff --git a/website/statpages/Statistics.jsp b/website/statpages/Statistics.jsp new file mode 100644 index 0000000..528ff00 --- /dev/null +++ b/website/statpages/Statistics.jsp @@ -0,0 +1,69 @@ +<%-- +Author: Peter Troshin +Date: May 2011 +--%> + +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %> + + + Usage Statistics + + + + +
+
+
+
+

JABAWS Usage Statistics for the Period: + to

+
+
+
+

All Jobs

+ + + + + +

Local Jobs

+ + + + + +

Cluster Jobs

+ + + + + +
+

Help

+

+ Each table contains the number of jobs processed by JABAWS during the period of + time specified in the title.

+
    +
  • The "All Jobs" table contains the summary of all jobs.
  • +
  • "Local Jobs" table - contains the summary of the jobs calculated by the local engine.
  • +
  • "Cluster Jobs" table - contains the summary of the jobs calculated by the cluster.
  • +
+ Each table contains the following information for each web service +
    +
  • Total - the total number of jobs accepted by a particular JABA service
  • +
  • Incomplete - the number of jobs for which the result file was not found or was empty excluding cancelled
  • +
  • Cancelled - the number of jobs cancelled by the user
  • +
  • Abandoned - the number of jobs which result(s) were not collected
  • +
+
+
+
+
+
+
+ + diff --git a/website/statpages/StatisticsTable.jsp b/website/statpages/StatisticsTable.jsp new file mode 100644 index 0000000..c6b336a --- /dev/null +++ b/website/statpages/StatisticsTable.jsp @@ -0,0 +1,55 @@ +<%-- +Author: Peter Troshin +Date: May 2011 +--%> + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Web ServiceNumber of Jobs
TotalIncompleteCancelledAbandoned
${ws.key}${ws.value.jobNumber}${fn:length(ws.value.incompleteJobs)}${fn:length(ws.value.cancelledJobs)}${fn:length(ws.value.abandonedJobs)}
Total:${totals.total}${totals.incomplete}${totals.cancelled}${totals.abandoned}
+ + \ No newline at end of file -- 1.7.10.2