public class EmbeddedJmxTransLoaderListener extends Object implements javax.servlet.ServletContextListener
EmbeddedJmxTrans.
embedded-jmxtrans configuration files are specified by a coma/line-break
delimited list of jmxtrans json configuration file declared in the web.xml
<context-param> element named ""jmxtrans.config"".
Sample:
<web-app ...>
<context-param>
<param-name>jmxtrans.config</param-name>
<param-value>
classpath:jmxtrans.json
classpath:org/jmxtrans/embedded/config/jmxtrans-internals-servlet-container.json
classpath:org/jmxtrans/embedded/config/tomcat-7.json
classpath:org/jmxtrans/embedded/config/jvm-sun-hotspot.json
</param-value>
</context-param>
<listener>
<listener-class>org.jmxtrans.embedded.servlet.EmbeddedJmxTransLoaderListener</listener-class>
</listener>
</web-app>
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_LOCATION_PARAM
Config param for the embedded-jmxtrans configuration urls.
|
protected org.slf4j.Logger |
logger |
static String |
SYSTEM_CONFIG_LOCATION_PARAM |
| Constructor and Description |
|---|
EmbeddedJmxTransLoaderListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
public static final String CONFIG_LOCATION_PARAM
public static final String SYSTEM_CONFIG_LOCATION_PARAM
protected final org.slf4j.Logger logger
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2016. All Rights Reserved.