@Service(value={org.apache.felix.inventory.InventoryPrinter.class,javax.servlet.Servlet.class})
@Properties(value={@Property(name="felix.webconsole.label",value="slingmetrics"),@Property(name="felix.webconsole.title",value="Metrics"),@Property(name="felix.webconsole.category",value="Sling"),@Property(name="felix.inventory.printer.format",value="TEXT"),@Property(name="felix.inventory.printer.name",value="slingmetrics"),@Property(name="felix.inventory.printer.title",value="Sling Metrics"),@Property(name="felix.inventory.printer.webconsole",boolValue=true)})
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>
Modifier and Type | Field and Description |
---|---|
static String |
METRIC_REGISTRY_NAME
Service property name which stores the MetricRegistry name as a given OSGi
ServiceRegistry might have multiple instances of MetricRegistry
|
Constructor and Description |
---|
MetricWebConsolePlugin() |
Modifier and Type | Method and 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(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) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public static final String METRIC_REGISTRY_NAME
public void print(PrintWriter printWriter, org.apache.felix.inventory.Format format, boolean isZip)
print
in interface org.apache.felix.inventory.InventoryPrinter
public com.codahale.metrics.MetricRegistry addingService(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference)
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer<com.codahale.metrics.MetricRegistry,com.codahale.metrics.MetricRegistry>
public void modifiedService(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference, com.codahale.metrics.MetricRegistry registry)
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer<com.codahale.metrics.MetricRegistry,com.codahale.metrics.MetricRegistry>
public void removedService(org.osgi.framework.ServiceReference<com.codahale.metrics.MetricRegistry> serviceReference, com.codahale.metrics.MetricRegistry registry)
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer<com.codahale.metrics.MetricRegistry,com.codahale.metrics.MetricRegistry>
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
doGet
in class javax.servlet.http.HttpServlet
IOException
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.