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, servicepublic static void shutdown()
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet