From c78d4a9557708741098608f313d2a12a81856c9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fa=CC=81bio=20Madeira?= Date: Fri, 2 Jun 2017 15:13:27 +0100 Subject: [PATCH] JWS-121 & JWS-109 Service Status now gives an indication of the health of service. Fixed the links to the Service Status and Usage Statistics pages. Also removed now unecessary files. --- website/refresh_service_status.sh | 30 ------------------------------ website/service_status.jsp | 11 ----------- website/template_footer.jsp | 4 ++-- website/template_header.jsp | 24 ++++++++++++++++++++++-- website/usage_statistics.jsp | 11 ----------- 5 files changed, 24 insertions(+), 56 deletions(-) delete mode 100644 website/refresh_service_status.sh delete mode 100644 website/service_status.jsp delete mode 100644 website/usage_statistics.jsp diff --git a/website/refresh_service_status.sh b/website/refresh_service_status.sh deleted file mode 100644 index 4d730bb..0000000 --- a/website/refresh_service_status.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -# run command as ./refresh_service_status.sh http://gjb-www-3.cluster.lifesci.dundee.ac.uk:9507/jabaws/ServiceStatus 15 cached_service_status.html & -# the command starts executing, but continues to run forever - -# Host URL $1 (example: http://gjb-www-3.cluster.lifesci.dundee.ac.uk:9507/jabaws/ServiceStatus) -# Host URL $1 (example: http://gjb-www-3.cluster.lifesci.dundee.ac.uk:9507/jabaws/PublicAnnualStat) -if [ -z "$1" ] - then - echo "Hostname needs to be passed as 1st argument! (example http://compbio.lifesci.dundee.ac.uk/jabaws/ServiceStatus)" - exit 1 -fi - -# Refresh Time $2 (minutes) -if [ -z "$2" ] - then - echo "Refresh Time (min) needs to be passed as 2nd argument! (example 15)" - exit 1 -fi - -# Output-file $3 (html) (example: cached_service_status.html) -# Output-file $3 (html) (example: cached_usage_statistics.html) -if [ -z "$3" ] - then - echo "Outputfile (html) needs to be passed as 3rd argument! (example: cached_service_status.html)" - exit 1 -fi - -# gets the file as a tmp -while :; do echo "Fetching from $1:" `date "+%d/%m/%Y %H:%M:%S"`; wget -q $1 -O "tmp_cache.html"; mv "tmp_cache.html" $3; sleep $2m; done diff --git a/website/service_status.jsp b/website/service_status.jsp deleted file mode 100644 index 94873d9..0000000 --- a/website/service_status.jsp +++ /dev/null @@ -1,11 +0,0 @@ - -<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> - -<%@ 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" %> - - -<%@ page errorPage="ServiceStatus" %> - diff --git a/website/template_footer.jsp b/website/template_footer.jsp index d5c2d57..973cd1f 100644 --- a/website/template_footer.jsp +++ b/website/template_footer.jsp @@ -37,11 +37,11 @@ Citing JABAWS
  • - Service Status + Service Status
  • - Usage Statistics + Usage Statistics
  • Funding diff --git a/website/template_header.jsp b/website/template_header.jsp index fff4c81..f7be117 100644 --- a/website/template_header.jsp +++ b/website/template_header.jsp @@ -1,3 +1,10 @@ + +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> +<%@ 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" %> + @@ -150,11 +157,24 @@
  • - + + + Service Status + + + + + Service Status + + + + Service Status + +
  • - + Usage Statistics
  • diff --git a/website/usage_statistics.jsp b/website/usage_statistics.jsp deleted file mode 100644 index 5171b3c..0000000 --- a/website/usage_statistics.jsp +++ /dev/null @@ -1,11 +0,0 @@ - -<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> - -<%@ 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" %> - - -<%@ page errorPage="PublicAnnualStat" %> - -- 1.7.10.2