Kieker 1.11

kieker.monitoring.probe.servlet
Class AbstractRegularSamplingServletContextListener

java.lang.Object
  extended by kieker.monitoring.probe.servlet.AbstractRegularSamplingServletContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener
Direct Known Subclasses:
ClassLoadingServletContextListener, CompilationServletContextListener, CPUMemUsageServletContextListener, CPUsCombinedServletContextListener, GCServletContextListener, JVMMemoryServletContextListener, JVMUptimeServletContextListener, ThreadStatusServletContextListener

public abstract class AbstractRegularSamplingServletContextListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

Since:
1.10
Author:
Nils Christian Ehmke, Andre van Hoorn

Field Summary
static long DEFAULT_SENSOR_INITIAL_DELAY_SECONDS
           
static long DEFAULT_SENSOR_INTERVAL_SECONDS
           
 
Constructor Summary
AbstractRegularSamplingServletContextListener()
          Empty default constructor.
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
          
 void contextInitialized(javax.servlet.ServletContextEvent event)
          
protected abstract  ISampler[] createSamplers()
          Create samplers for the specific sampling class.
protected abstract  java.lang.String getContextParameterNameSamplingDelaySeconds()
          Parameter name for the sampling delay to be used in the web.xml file.
protected abstract  java.lang.String getContextParameterNameSamplingIntervalSeconds()
          Parameter name for the sampling interval to be used in the web.xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SENSOR_INTERVAL_SECONDS

public static final long DEFAULT_SENSOR_INTERVAL_SECONDS
See Also:
Constant Field Values

DEFAULT_SENSOR_INITIAL_DELAY_SECONDS

public static final long DEFAULT_SENSOR_INITIAL_DELAY_SECONDS
See Also:
Constant Field Values
Constructor Detail

AbstractRegularSamplingServletContextListener

public AbstractRegularSamplingServletContextListener()
Empty default constructor.

Method Detail

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

getContextParameterNameSamplingIntervalSeconds

protected abstract java.lang.String getContextParameterNameSamplingIntervalSeconds()
Parameter name for the sampling interval to be used in the web.xml file.

Returns:
the parameter name

getContextParameterNameSamplingDelaySeconds

protected abstract java.lang.String getContextParameterNameSamplingDelaySeconds()
Parameter name for the sampling delay to be used in the web.xml file.

Returns:
the parameter name

createSamplers

protected abstract ISampler[] createSamplers()
Create samplers for the specific sampling class.

Returns:
array of samplers

Kieker 1.11

Copyright 2015 Kieker Project, http://kieker-monitoring.net