Kieker 1.3

kieker.monitoring.probe.servlet
Class CPUsCombinedServletContextListener

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

public class CPUsCombinedServletContextListener
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
CPUsCombinedServletContextListener()
           
 
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

CPUsCombinedServletContextListener

public CPUsCombinedServletContextListener()
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