@Override public void stop() throws GlassFishException { decoratedGf.stop(); }
@Override public void stop() throws GlassFishException { decoratedGf.stop(); }
public void run() { try { if (gf != null) { gf.stop(); gf.dispose(); } } catch (Exception ex) { } } });
public void run() { try { if (gf != null) { gf.stop(); gf.dispose(); } } catch (Exception ex) { } } });
void stop() { if (state == CLOSED) { return; } try { server.stop(); } catch (GlassFishException e) { _logger.log(Level.WARNING, "Cannot stop embedded server", e); } finally { try { server.dispose(); } catch (GlassFishException e) { _logger.log(Level.WARNING, "Cannot dispose embedded server", e); } state = CLOSED; } }
void stop() { if (state == CLOSED) { return; } try { server.stop(); } catch (GlassFishException e) { _logger.log(Level.WARNING, "Cannot stop embedded server", e); } finally { try { server.dispose(); } catch (GlassFishException e) { _logger.log(Level.WARNING, "Cannot dispose embedded server", e); } state = CLOSED; } }
public void stop() { try { gf.stop(); gf.dispose(); gf = null; gfr.shutdown(); gfr = null; } catch (Exception e) { throw new RuntimeException("Shutdown failed", e); } log.info("GF has been shutdown"); }
/** * Undeploys all modules and shuts down the GlassFish runtime. */ public synchronized void cleanup() { undeployModules(); try { glassFish.stop(); } catch (GlassFishException exc) { throw new TestContainerException(exc); } }
public void stop() throws LifecycleException { try { unbindCommandRunner(); glassfish.stop(); } catch (Exception e) { throw new LifecycleException("Could not stop GlassFish Embedded", e); } }
/** * stops the embedded server instance, any deployed application will be stopped * ports will be closed and shutdown services will be ran. * EmbeddedFileSystem will be released, meaning that any managed directory will * be deleted rendering the EmbeddedFileSystem unusable. * * @throws LifecycleException if the server cannot shuts down properly */ public synchronized void stop() throws LifecycleException { try { if (glassfish != null) { glassfish.stop(); logger.finer("GlassFish has been stopped"); } if (glassfishRuntime != null) { glassfishRuntime.shutdown(); logger.finer("GlassFishruntime has been shutdown"); } } catch (Exception ex) { logger.log(Level.WARNING, ex.getMessage(), ex); } finally { synchronized(servers) { servers.remove(serverName); } fileSystem.get().preDestroy(); } }
/** * stops the embedded server instance, any deployed application will be stopped * ports will be closed and shutdown services will be ran. * EmbeddedFileSystem will be released, meaning that any managed directory will * be deleted rendering the EmbeddedFileSystem unusable. * * @throws LifecycleException if the server cannot shuts down properly */ public synchronized void stop() throws LifecycleException { try { if (glassfish != null) { glassfish.stop(); logger.finer("GlassFish has been stopped"); } if (glassfishRuntime != null) { glassfishRuntime.shutdown(); logger.finer("GlassFishruntime has been shutdown"); } } catch (Exception ex) { logger.log(Level.WARNING, ex.getMessage(), ex); } finally { synchronized(servers) { servers.remove(serverName); } fileSystem.getService().preDestroy(); } }
private void shutdownInternal() throws GlassFishException { if (glassFish != null) { glassFish.getDeployer().undeploy(getApplicationName()); glassFish.stop(); glassFish = null; } }
gfKernel.stop();
gfKernel.stop();
gf.stop(); gf.dispose(); } catch (Exception ex) {
gf.stop(); gf.dispose(); } catch (Exception ex) {
continue; gf.stop(); } else if (command.startsWith("deploy")) { if (gf.getStatus() != GlassFish.Status.STARTED) {
continue; gf.stop(); } else if (command.startsWith("deploy")) { if (gf.getStatus() != GlassFish.Status.STARTED) {
glassFish.stop(); glassFish.dispose();