Class 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 Detail

      • jmxReporter

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

        protected com.codahale.metrics.graphite.GraphiteReporter graphiteReporter
        The Graphite reporter.
    • Method Detail

      • contextInitialized

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

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