Class MonitorLauncher

java.lang.Object
com.nimbusds.common.servlet.MonitorLauncher
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class MonitorLauncher extends Object implements jakarta.servlet.ServletContextListener
Monitor launcher.
  • Exports the shared MonitorRegistries into the servlet context.
  • Starts JMX reporting if configured.
  • Starts Graphite reporting if configured.
  • Field Details

    • 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:
    • jmxReporter

      protected com.codahale.metrics.jmx.JmxReporter jmxReporter
      The JMX reporter.
    • graphiteReporter

      protected com.codahale.metrics.graphite.GraphiteReporter graphiteReporter
      The Graphite reporter.
  • Constructor Details

  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener