|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
GraphingServlet class that can be installed in a web.xml
file to expose graphs generated by a GraphingStatisticsAppender.
See:
Description
| Class Summary | |
|---|---|
| GraphingServlet | This graphing servlet implementation looks for graphs from GraphingStatisticsAppenders that
have been created by the logback framework. |
Provides the concrete GraphingServlet class that can be installed in a web.xml
file to expose graphs generated by a GraphingStatisticsAppender. The following example
web.xml shows how the servlet could be configured:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>perf4j</servlet-name>
<servlet-class>org.perf4j.logback.servlet.GraphingServlet</servlet-class>
<!--
The values for the graphNames init param must match the names of the GraphingStatisticsAppenders
as configured in the logback.xml file.
-->
<init-param>
<param-name>graphNames</param-name>
<param-value>PageTimes,PageTPS</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>perf4j</servlet-name>
<url-pattern>/perf4j</url-pattern>
</servlet-mapping>
</web-app>
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||