/** Start an ear */ public void startEarDeploy(String name) { clearCache(); _earDeploy.update(); EarDeployController entry = _earDeploy.update(name); if (entry != null) entry.start(); clearCache(); }
/** Updates an ear deploy */ public void updateEarDeploy(String name) throws Throwable { clearCache(); _earDeploy.update(); EarDeployController entry = _earDeploy.update(name); if (entry != null) { entry.start(); Throwable configException = entry.getConfigException(); if (configException != null) throw configException; } clearCache(); }
/** Returns the current array of webApp entries. */ @Override public void generateController(String name, ArrayList<WebAppController> list) { if (_earContainer.isModified()) { _earContainer.update(); } for (EarDeployController earController : _earContainer.getControllers()) { WebAppController webAppController; webAppController = earController.findWebAppController(name); if (webAppController != null) { list.add(webAppController); return; } } }
/** Adds the ear-expansion */ public void addEarDeploy(EarDeployGenerator earDeploy) throws Exception { _earDeploy.add(earDeploy); // server/26cc - _appDeploy must be added first, because the // _earDeploy addition will automaticall register itself _appDeploy.add(new WebAppEarDeployGenerator(_appDeploySpi, this, earDeploy)); /* _earDeploy.add(earDeploy); */ }
/** Closes the container. */ public void destroy() { _earDeploy.destroy(); _appDeploy.destroy(); AbstractAccessLog accessLog = _accessLog; _accessLog = null; if (accessLog != null) { try { accessLog.destroy(); } catch (Exception e) { log.log(Level.FINER, e.toString(), e); } } }
/** Destroy the deployment. */ @Override protected void destroyImpl() { _earContainer.destroy(); super.destroyImpl(); }
/** Destroy the deployment. */ @Override protected void stopImpl() { _earContainer.stop(); super.stopImpl(); }
/** Redeploys if modified. */ @Override public void update() { _earContainer.update(); }
/** Log the modification */ @Override public boolean logModified(Logger log) { return _earContainer.logModified(log); }
/** Return true if modified. */ @Override public boolean isModified() { boolean isModified = _earContainer.isModified(); return isModified; }
/** Starts the deployment. */ @Override protected void startImpl() { super.startImpl(); _earContainer.start(); }
/** Closes the container. */ public boolean stop() { _earDeploy.stop(); _appDeploy.stop(); return true; }
/** Returns a list of the webApps. */ public EarDeployController[] getEntAppList() { return _earDeploy.getControllers(); }
/** Adds an enterprise webApp. */ public void addApplication(EarConfig config) { DeployGenerator<EarDeployController> deploy = new EarSingleDeployGenerator(_earDeploy, this, config); _earDeploy.add(deploy); }