Package com.nimbusds.common.servlet
Class MonitorLauncher
- java.lang.Object
-
- com.nimbusds.common.servlet.MonitorLauncher
-
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
public class MonitorLauncher extends Object implements javax.servlet.ServletContextListener
Monitor launcher.- Exports the shared
MonitorRegistries
into the servlet context. - Starts JMX reporting if configured.
- Starts Graphite reporting if configured.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_CTX_PARAMETER_NAME
The name of the servlet context parameter that specifies the configuration file location.protected com.codahale.metrics.graphite.GraphiteReporter
graphiteReporter
The Graphite reporter.protected com.codahale.metrics.jmx.JmxReporter
jmxReporter
The JMX reporter.
-
Constructor Summary
Constructors Constructor Description MonitorLauncher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent sce)
void
contextInitialized(javax.servlet.ServletContextEvent sce)
-
-
-
Field Detail
-
CONFIG_CTX_PARAMETER_NAME
public static final String CONFIG_CTX_PARAMETER_NAME
The name of the servlet context parameter that specifies the configuration file location.- See Also:
- Constant Field Values
-
jmxReporter
protected com.codahale.metrics.jmx.JmxReporter jmxReporter
The JMX reporter.
-
graphiteReporter
protected com.codahale.metrics.graphite.GraphiteReporter graphiteReporter
The Graphite reporter.
-
-
Constructor Detail
-
MonitorLauncher
public MonitorLauncher()
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
-