Package com.nimbusds.common.servlet
Class MonitorLauncher
java.lang.Object
com.nimbusds.common.servlet.MonitorLauncher
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener
,EventListener
Monitor launcher.
- Exports the shared
MonitorRegistries
into the servlet context. - Starts JMX reporting if configured.
- Starts Graphite reporting if configured.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the servlet context parameter that specifies the configuration file location.protected com.codahale.metrics.graphite.GraphiteReporter
The Graphite reporter.protected com.codahale.metrics.jmx.JmxReporter
The JMX reporter. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(jakarta.servlet.ServletContextEvent sce) void
contextInitialized
(jakarta.servlet.ServletContextEvent sce)
-
Field Details
-
CONFIG_CTX_PARAMETER_NAME
The name of the servlet context parameter that specifies the configuration file location.- See Also:
-
jmxReporter
The JMX reporter. -
graphiteReporter
The Graphite reporter.
-
-
Constructor Details
-
MonitorLauncher
public MonitorLauncher()
-
-
Method Details
-
contextInitialized
- Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
- Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-