Search in sources :

Example 1 with BaseStatusServlet

use of org.apache.beam.runners.dataflow.worker.status.BaseStatusServlet in project beam by apache.

the class WindmillStateCache method statusServlet.

public BaseStatusServlet statusServlet() {
    return new BaseStatusServlet("/cachez") {

        @Override
        protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
            PrintWriter writer = response.getWriter();
            writer.println("<h1>Cache Information</h1>");
            appendSummaryHtml(writer);
        }
    };
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) BaseStatusServlet(org.apache.beam.runners.dataflow.worker.status.BaseStatusServlet) HttpServletResponse(javax.servlet.http.HttpServletResponse) PrintWriter(java.io.PrintWriter)

Aggregations

PrintWriter (java.io.PrintWriter)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1 BaseStatusServlet (org.apache.beam.runners.dataflow.worker.status.BaseStatusServlet)1