Kieker 1.3

kieker.monitoring.probe.servlet
Class CPUMemUsageServletContextListener

java.lang.Object
  extended by kieker.monitoring.probe.servlet.CPUMemUsageServletContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class CPUMemUsageServletContextListener
extends Object
implements javax.servlet.ServletContextListener

Starts and stops the periodic logging of CPU utilization employing the SigarSamplerFactory as the Servlet is initialized and destroyed respectively. The statistics are logged with a period of seconds.

It can be integrated into a web.xml as follows:
<listener> <listener-class> kieker.monitoring.probe.servlet.CPUMemUsageServletContextListener </listener-class> </listener>

Author:
Andre van Hoorn

Constructor Summary
CPUMemUsageServletContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent arg0)
           
 void contextInitialized(javax.servlet.ServletContextEvent arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPUMemUsageServletContextListener

public CPUMemUsageServletContextListener()
Method Detail

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent arg0)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent arg0)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

Kieker 1.3

Copyright 2011 the Kieker Project, http://kieker.sourceforge.net