@Override public void asyncCancel(final boolean interruptionDesired) { container.shutdown(); container.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(final Info info) { setCancelled(); } }); }
@Override public void asyncCancel(final boolean interruptionDesired) { container.shutdown(); container.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(final Info info) { setCancelled(); } }); }
@Override public void asyncCancel(final boolean interruptionDesired) { container.shutdown(); container.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(final Info info) { setCancelled(); } }); }
@Override public void asyncCancel(final boolean interruptionDesired) { container.shutdown(); container.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(final Info info) { setCancelled(); } }); }
/** * Stops the service container and cleans up all file system resources. * * @throws Exception */ public void stop() throws Exception { final CountDownLatch latch = new CountDownLatch(1); this.serviceContainer.addTerminateListener(info -> latch.countDown()); this.serviceContainer.shutdown(); latch.await(); executor.submit(new Runnable() { @Override public void run() { TempFileManager.deleteRecursively(tmpDir); } }); executor.shutdown(); }
/** * Stops the service container and cleans up all file system resources. * * @throws Exception */ public void stop() throws Exception { final CountDownLatch latch = new CountDownLatch(1); this.serviceContainer.addTerminateListener(info -> latch.countDown()); this.serviceContainer.shutdown(); latch.await(); executor.submit(new Runnable() { @Override public void run() { TempFileManager.deleteRecursively(tmpDir); } }); executor.shutdown(); }
public void stop() throws Exception { final CountDownLatch latch = new CountDownLatch(1); this.serviceContainer.addTerminateListener(info -> latch.countDown()); this.serviceContainer.shutdown(); latch.await(); this.deployer.stop(); this.serviceContainer = null; this.client = null; this.deployer = null; }
public void stop() throws Exception { final CountDownLatch latch = new CountDownLatch(1); this.serviceContainer.addTerminateListener(info -> latch.countDown()); this.serviceContainer.shutdown(); latch.await(); this.deployer.stop(); this.serviceContainer = null; this.client = null; this.deployer = null; }
/** * Stops the service container and cleans up all file system resources. * * @throws Exception */ public void stop() throws Exception { final CountDownLatch latch = new CountDownLatch(1); this.serviceContainer.addTerminateListener(info -> latch.countDown()); this.serviceContainer.shutdown(); latch.await(); executor.submit(new Runnable() { @Override public void run() { TempFileManager.deleteRecursively(tmpDir); } }); executor.shutdown(); }
public void stop() throws Exception { final CountDownLatch latch = new CountDownLatch(1); this.serviceContainer.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(Info info) { latch.countDown(); } }); this.serviceContainer.shutdown(); latch.await(); this.deployer.stop(); this.serviceContainer = null; this.client = null; this.deployer = null; }
if (sc != null) { final CountDownLatch latch = new CountDownLatch(1); sc.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(Info info) {
if (sc != null) { final CountDownLatch latch = new CountDownLatch(1); sc.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(Info info) {
if (sc != null) { final CountDownLatch latch = new CountDownLatch(1); sc.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(Info info) {
SystemExiter.logBeforeExit(HostControllerLogger.ROOT_LOGGER::shutdownHookInvoked); final CountDownLatch latch = new CountDownLatch(1); sc.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(Info info) {
SystemExiter.logBeforeExit(HostControllerLogger.ROOT_LOGGER::shutdownHookInvoked); final CountDownLatch latch = new CountDownLatch(1); sc.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(Info info) {
controller.getServiceContainer().addTerminateListener(shutdownListener);
sc.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(Info info) {
sc.addTerminateListener(new ServiceContainer.TerminateListener() { @Override public void handleTermination(Info info) {