public boolean stop() { if (sendShutdown(5)) { return true; } else { if (verbose) { notSent(); } return false; } }
public boolean stop() { if (sendShutdown(5)) { return true; } else { if (verbose) { notSent(); } return false; } }
return false; return sendShutdown(--attempts); } else { return false;
public void forceStop() throws Exception { if (sendShutdown(5)) { // Check TomEE was effectively shut down after getting the message // There can be concurrent shutdown operations (catalina shutdown hook for instance), // so we have to wait here since it is important to be synchronous in this method waitForServerShutdown(); } else { if (verbose) { notSent(); } } }
public void forceStop() throws Exception { if (sendShutdown(5)) { // Check TomEE was effectively shut down after getting the message // There can be concurrent shutdown operations (catalina shutdown hook for instance), // so we have to wait here since it is important to be synchronous in this method waitForServerShutdown(); } else { if (verbose) { notSent(); } } }
return false; return sendShutdown(--attempts); } else { return false;