public class GCServletContextListener extends AbstractRegularSamplingServletContextListener
 Starts and stops the periodic logging of garbage collection. 
 The initial delay and the sampling period (both given in seconds) can be configured via context-params in the web.xml file, as shown below.
 
 The integration and configuration in a web.xml file works as follows:
 
 
 <web-app>
  ...
  
 <context-param>
  <param-name>GCServletContextListener.samplingIntervalSeconds</param-name>
  <param-value>15</param-value>
 </context-param>
 
  <context-param>
   <param-name>GCServletContextListener.initialSamplingDelaySeconds</param-name>
  <param-value>0</param-value>
 </context-param>
 
 <listener>
   <listener-class>
     kieker.monitoring.probe.servlet.GCServletContextListener
   </listener-class>
 </listener>
 
 ... 
 </web-app>
 }
 
 
 | Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CONTEXT_PARAM_NAME_INITIAL_SAMPLING_DELAY_SECONDSParameter name for the initial delay to be used in the web.xml file. | 
| static java.lang.String | CONTEXT_PARAM_NAME_SAMPLING_INTERVAL_SECONDSParameter name for the sampling interval to be used in the web.xml file. | 
DEFAULT_SENSOR_INITIAL_DELAY_SECONDS, DEFAULT_SENSOR_INTERVAL_SECONDS| Constructor and Description | 
|---|
| GCServletContextListener()Empty constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected ISampler[] | createSamplers()Create samplers for the specific sampling class. | 
| protected java.lang.String | getContextParameterNameSamplingDelaySeconds()Parameter name for the sampling delay to be used in the web.xml file. | 
| protected java.lang.String | getContextParameterNameSamplingIntervalSeconds()Parameter name for the sampling interval to be used in the web.xml file. | 
contextDestroyed, contextInitializedpublic static final java.lang.String CONTEXT_PARAM_NAME_SAMPLING_INTERVAL_SECONDS
public static final java.lang.String CONTEXT_PARAM_NAME_INITIAL_SAMPLING_DELAY_SECONDS
protected java.lang.String getContextParameterNameSamplingIntervalSeconds()
AbstractRegularSamplingServletContextListenergetContextParameterNameSamplingIntervalSeconds in class AbstractRegularSamplingServletContextListenerprotected java.lang.String getContextParameterNameSamplingDelaySeconds()
AbstractRegularSamplingServletContextListenergetContextParameterNameSamplingDelaySeconds in class AbstractRegularSamplingServletContextListenerprotected ISampler[] createSamplers()
AbstractRegularSamplingServletContextListenercreateSamplers in class AbstractRegularSamplingServletContextListenerCopyright 2017 Kieker Project, http://kieker-monitoring.net