public class InstrumentedHandler
extends org.eclipse.jetty.server.handler.HandlerWrapper
Handler which records various metrics about an underlying Handler
instance.org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandlerorg.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| Constructor and Description |
|---|
InstrumentedHandler(io.dropwizard.metrics5.MetricRegistry registry)
Create a new instrumented handler using a given metrics registry.
|
InstrumentedHandler(io.dropwizard.metrics5.MetricRegistry registry,
String prefix)
Create a new instrumented handler using a given metrics registry.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
String |
getName() |
void |
handle(String path,
org.eclipse.jetty.server.Request request,
javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse) |
void |
setName(String name) |
destroy, expandChildren, getHandler, getHandlers, insertHandler, setHandlerexpandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServerdoError, doStop, dumpThis, getServeraddBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic InstrumentedHandler(io.dropwizard.metrics5.MetricRegistry registry)
registry - the registry for the metricspublic InstrumentedHandler(io.dropwizard.metrics5.MetricRegistry registry,
String prefix)
registry - the registry for the metricsprefix - the prefix to use for the metrics namespublic String getName()
public void setName(String name)
protected void doStart()
throws Exception
doStart in class org.eclipse.jetty.server.handler.AbstractHandlerExceptionpublic void handle(String path, org.eclipse.jetty.server.Request request, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws IOException, javax.servlet.ServletException
handle in interface org.eclipse.jetty.server.Handlerhandle in class org.eclipse.jetty.server.handler.HandlerWrapperIOExceptionjavax.servlet.ServletExceptionCopyright © 2018. All Rights Reserved.