Class MetricWebConsolePlugin
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.sling.commons.metrics.internal.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.StringMETRIC_REGISTRY_NAMEService property name which stores the MetricRegistry name as a given OSGi ServiceRegistry might have multiple instances of MetricRegistry
-
Constructor Summary
Constructors Constructor Description MetricWebConsolePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.MetricRegistryaddingService(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference)protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)voidmodifiedService(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference, com.codahale.metrics.MetricRegistry registry)voidprint(java.io.PrintWriter printWriter, org.apache.felix.inventory.Format format, boolean isZip)voidremovedService(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
-
-
-
-
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
-
-
Method Detail
-
print
public void print(java.io.PrintWriter printWriter, org.apache.felix.inventory.Format format, boolean isZip)- Specified by:
printin interfaceorg.apache.felix.inventory.InventoryPrinter
-
addingService
public com.codahale.metrics.MetricRegistry addingService(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference)
- Specified by:
addingServicein interfaceorg.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:
modifiedServicein interfaceorg.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:
removedServicein interfaceorg.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:
doGetin classjavax.servlet.http.HttpServlet- Throws:
java.io.IOException
-
-