public class TurbineStreamServlet
extends javax.servlet.http.HttpServlet
The servlet first attempts to find the ClusterMonitor for the specified cluster param.
Once this is found it creates the TurbineStreamingConnection and then gives it it's own StreamingDataHandler to handle events from the streaming connection.
All data written to the StreamingHandler is then sent out over the http connection using the Server-Side Event spec.
| Modifier and Type | Class and Description |
|---|---|
static class |
TurbineStreamServlet.FilterCriteria
Helper class that understands how to parse the filter criteria passed in using the query params
e.g
filterCriteria=type:foo|name:bar,type:baz|name:floz
This will filter 2 sub streams of type bar and baz and will look for metrics with the name foo and floz
|
| Constructor and Description |
|---|
TurbineStreamServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletrequest - HttpServletRequestresponse - HttpServletResponseServletException, - IOExceptionjavax.servlet.ServletExceptionjava.io.IOExceptionprotected 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.HttpServletrequest - HttpServletRequestresponse - HttpServletResponseServletException, - IOExceptionjavax.servlet.ServletExceptionjava.io.IOException