public void undeployPortal(@Observes BeforeStop beforeStopEvent) throws DeploymentException { for (Archive<?> archive : deployments) { beforeStopEvent.getDeployableContainer().undeploy(archive); } } }
@Override public void stop() throws LifecycleException { event.fire(new BeforeStop(deployableContainer)); try { deployableContainer.stop(); setState(Container.State.STOPPED); } catch (LifecycleException e) { setState(State.STOPPED_FAILED); failureCause = e; throw e; } event.fire(new AfterStop(deployableContainer)); }
@Override public void stop() throws LifecycleException { event.fire(new BeforeStop(deployableContainer)); try { deployableContainer.stop(); setState(Container.State.STOPPED); } catch (LifecycleException e) { setState(State.STOPPED_FAILED); failureCause = e; throw e; } event.fire(new AfterStop(deployableContainer)); }
public void undeployPortal(@Observes BeforeStop beforeStopEvent) throws DeploymentException { for (Archive<?> archive : deployments) { beforeStopEvent.getDeployableContainer().undeploy(archive); } } }
@Override public void perform(Container container) throws Exception { event.fire(new BeforeStop(container.getDeployableContainer())); try { if (container.getState().equals(Container.State.STARTED)) { CommonDeployableContainer c = (CommonDeployableContainer) container.getDeployableContainer(); c.stop(stopEvent.getTimeout()); } container.setState(Container.State.STOPPED); } catch (LifecycleException e) { container.setState(Container.State.STOPPED_FAILED); throw e; } event.fire(new AfterStop(container.getDeployableContainer())); } });
public Void call() throws Exception { for (Deployment d : suiteDeploymentScenario.deployments()) { deploymentEvent.fire(new UnDeployDeployment(findContainer(registry, event.getDeployableContainer()), d)); } return null; } });
@Override public void perform(Container container) throws Exception { event.fire(new BeforeStop(container.getDeployableContainer())); try { if (container.getState().equals(Container.State.STARTED)) { CommonDeployableContainer c = (CommonDeployableContainer) container.getDeployableContainer(); c.stop(stopEvent.getTimeout()); } container.setState(Container.State.STOPPED); } catch (LifecycleException e) { container.setState(Container.State.STOPPED_FAILED); throw e; } event.fire(new AfterStop(container.getDeployableContainer())); } });
public Void call() throws Exception { for (Deployment d : suiteDeploymentScenario.deployments()) { deploymentEvent.fire(new UnDeployDeployment(findContainer(registry, event.getDeployableContainer()), d)); } return null; } });
public Void call() throws Exception { for (Deployment d : suiteDeploymentScenario.deployments()) { deploymentEvent.fire(new UnDeployDeployment(findContainer(registry, event.getDeployableContainer()), d)); } return null; } });