Package org.perf4j.log4j.servlet

Provides the concrete 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 log4j framework.
 

Package org.perf4j.log4j.servlet Description

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.servlet.Log4JGraphingServlet</servlet-class>
     <!--
       The values for the graphNames init param must match the names of the GraphingStatisticsAppenders
       as configured in the log4j.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>
 



Copyright © 2008-2009 perf4j.org. All Rights Reserved.