/** * When the agent is deleted, free the node right away. */ @Override @RequirePOST public HttpResponse doDoDelete() throws IOException { checkPermission(DELETE); try { T node = getNode(); if (node != null) { // No need to terminate nodes again node.terminate(); } return new HttpRedirect(".."); } catch (InterruptedException e) { return HttpResponses.error(500,e); } } }
/** * When the slave is deleted, free the node. */ @Override public HttpResponse doDoDelete() throws IOException { checkPermission(DELETE); try { getNode().terminate(); return new HttpRedirect(".."); } catch (InterruptedException e) { return HttpResponses.error(500,e); } } }
/** * When the slave is deleted, free the node. */ @Override public HttpResponse doDoDelete() throws IOException { checkPermission(DELETE); try { getNode().terminate(); return new HttpRedirect(".."); } catch (InterruptedException e) { return HttpResponses.error(500,e); } } }
/** * When the slave is deleted, free the node. */ @Override public HttpResponse doDoDelete() throws IOException { checkPermission(DELETE); try { getNode().terminate(); return new HttpRedirect(".."); } catch (InterruptedException e) { return HttpResponses.error(500, e); } } }
/** * When the slave is deleted, free the node. */ @Override public HttpResponse doDoDelete() throws IOException { checkPermission(DELETE); try { getNode().terminate(); return new HttpRedirect(".."); } catch (InterruptedException e) { return HttpResponses.error(500,e); } } }
/** * When the agent is deleted, free the node right away. */ @Override @RequirePOST public HttpResponse doDoDelete() throws IOException { checkPermission(DELETE); try { T node = getNode(); if (node != null) { // No need to terminate nodes again node.terminate(); } return new HttpRedirect(".."); } catch (InterruptedException e) { return HttpResponses.error(500,e); } } }