MCPcopy Create free account
hub / github.com/apache/nutch / stopRemoteServer

Method stopRemoteServer

src/java/org/apache/nutch/api/NutchServer.java:403–413  ·  view source on GitHub ↗
(boolean force)

Source from the content-addressed store, hash-verified

401 }
402
403 private static void stopRemoteServer(boolean force) {
404 Reference reference = new Reference(Protocol.HTTP, LOCALHOST, port);
405 reference.setPath("/admin/stop");
406
407 if (force) {
408 reference.addQueryParameter("force", "true");
409 }
410
411 ClientResource clientResource = new ClientResource(reference);
412 clientResource.get();
413 }
414
415 private static Options createOptions() {
416 Options options = new Options();

Callers 1

mainMethod · 0.95

Calls 2

setPathMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected