public class HystrixMetricsStreamServlet
extends 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(HttpServletRequest request,
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.
|
public static void shutdown()
public void init() throws ServletException
ServletException
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public void destroy()