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.String
METRIC_REGISTRY_NAME
Service 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.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
-
-
-
-
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:
print
in interfaceorg.apache.felix.inventory.InventoryPrinter
-
addingService
public com.codahale.metrics.MetricRegistry addingService(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference)
- Specified by:
addingService
in 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:
modifiedService
in 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:
removedService
in 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:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
java.io.IOException
-
-