Class MetricWebConsolePlugin

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.apache.felix.inventory.InventoryPrinter, org.osgi.util.tracker.ServiceTrackerCustomizer<com.codahale.metrics.MetricRegistry,​com.codahale.metrics.MetricRegistry>

    public class MetricWebConsolePlugin
    extends javax.servlet.http.HttpServlet
    implements org.apache.felix.inventory.InventoryPrinter, org.osgi.util.tracker.ServiceTrackerCustomizer<com.codahale.metrics.MetricRegistry,​com.codahale.metrics.MetricRegistry>
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String METRIC_REGISTRY_NAME
      Service property name which stores the MetricRegistry name as a given OSGi ServiceRegistry might have multiple instances of MetricRegistry
      • Fields inherited from interface org.apache.felix.inventory.InventoryPrinter

        FORMAT, NAME, SERVICE, TITLE, WEBCONSOLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.codahale.metrics.MetricRegistry addingService​(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference)  
      protected void doGet​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      void modifiedService​(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference, com.codahale.metrics.MetricRegistry registry)  
      void print​(java.io.PrintWriter printWriter, org.apache.felix.inventory.Format format, boolean isZip)  
      void removedService​(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference, com.codahale.metrics.MetricRegistry registry)  
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • METRIC_REGISTRY_NAME

        public static final java.lang.String METRIC_REGISTRY_NAME
        Service property name which stores the MetricRegistry name as a given OSGi ServiceRegistry might have multiple instances of MetricRegistry
        See Also:
        Constant Field Values
    • Constructor Detail

      • MetricWebConsolePlugin

        public MetricWebConsolePlugin()
    • Method Detail

      • print

        public void print​(java.io.PrintWriter printWriter,
                          org.apache.felix.inventory.Format format,
                          boolean isZip)
        Specified by:
        print in interface org.apache.felix.inventory.InventoryPrinter
      • addingService

        public com.codahale.metrics.MetricRegistry addingService​(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference)
        Specified by:
        addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<com.codahale.metrics.MetricRegistry,​com.codahale.metrics.MetricRegistry>
      • modifiedService

        public void modifiedService​(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference,
                                    com.codahale.metrics.MetricRegistry registry)
        Specified by:
        modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<com.codahale.metrics.MetricRegistry,​com.codahale.metrics.MetricRegistry>
      • removedService

        public void removedService​(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference,
                                   com.codahale.metrics.MetricRegistry registry)
        Specified by:
        removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<com.codahale.metrics.MetricRegistry,​com.codahale.metrics.MetricRegistry>
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse resp)
                      throws java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        java.io.IOException