MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / execute

Method execute

java/src/org/openqa/selenium/grid/node/Drain.java:40–53  ·  view source on GitHub ↗
(HttpRequest req)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

setStatusMethod · 0.95
isDrainingMethod · 0.80
drainMethod · 0.65

Tested by

no test coverage detected