public class HystrixMetricsStreamServlet
extends javax.servlet.http.HttpServlet
Install by:
1) Including hystrix-metrics-event-stream-*.jar in your classpath.
2) Adding the following to web.xml:
<servlet>
<description></description>
<display-name>HystrixMetricsStreamServlet</display-name>
<servlet-name>HystrixMetricsStreamServlet</servlet-name>
<servlet-class>com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HystrixMetricsStreamServlet</servlet-name>
<url-pattern>/hystrix.stream</url-pattern>
</servlet-mapping>
Constructor and Description |
---|
HystrixMetricsStreamServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Handle servlet being undeployed by gracefully releasing connections so poller threads stop.
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle incoming GETs
|
void |
init() |
static void |
shutdown()
WebSphere won't shutdown a servlet until after a 60 second timeout if there is an instance of the servlet executing
a request.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public static void shutdown()
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright © 2016. All Rights Reserved.