public class ControlHandler
extends org.eclipse.jetty.server.handler.AbstractHandler
Commands
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandler
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
Constructor and Description |
---|
ControlHandler(com.codahale.metrics.MetricRegistry registry)
Control handler for administration tasks.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(String target,
org.eclipse.jetty.server.Request serverRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
shutdown(int port)
Perform shutdown.
|
static void |
status(int port)
Display status.
|
destroy, doError, doStart, doStop, dumpThis, getServer, setServer
addBean, 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, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
public ControlHandler(com.codahale.metrics.MetricRegistry registry)
registry
- metrics registry.public static void shutdown(int port)
port
- control handler port.public static void status(int port)
port
- control handler port.public void handle(String target, org.eclipse.jetty.server.Request serverRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
handle
in interface org.eclipse.jetty.server.Handler
handle
in class org.eclipse.jetty.server.handler.AbstractHandler
IOException
javax.servlet.ServletException
Copyright © 2008–2018. All rights reserved.