(HttpRequest req)
| 38 | } |
| 39 | |
| 40 | @Override |
| 41 | public HttpResponse execute(HttpRequest req) throws UncheckedIOException { |
| 42 | this.node.drain(); |
| 43 | |
| 44 | HttpResponse response = new HttpResponse(); |
| 45 | |
| 46 | if (this.node.isDraining()) { |
| 47 | response.setStatus(HTTP_OK); |
| 48 | } else { |
| 49 | response.setStatus(HTTP_INTERNAL_ERROR); |
| 50 | } |
| 51 | |
| 52 | return response; |
| 53 | } |
| 54 | } |
nothing calls this directly
no test coverage detected