quickcheck.xml.jsp

来自「Lambda Probe(Tomcat Probe)是一个基于Web以实时的方式」· JSP 代码 · 共 35 行

JSP
35
字号
<%--
 * Licensed under the GPL License. You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://probe.jstripe.com/d/license.shtml
 *
 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 --%>

<%@ page contentType="text/xml;charset=UTF-8" language="java" session="false" %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>

<%--
    "Quick check" results in machine-readable XML format.

    Author: Vlad Ilyushchenko
--%>

<report>
    <c:choose>
        <c:when test="${testReport.datasourceTest == 1 &&
                        testReport.datasourceUsageScore < 100 &&
                        testReport.memoryTest == 1 &&
                        testReport.fileTest == 1 &&
                        (testReport.webappAvailabilityTest == 1 || (! empty param.webapp && !param.webapp))}">
            <status>OK</status>
        </c:when>
        <c:otherwise>
            <status>FAULTY</status>
        </c:otherwise>
    </c:choose>
</report>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?