public Collection<QName> call(ConfStoreConnection conn) { DeploymentUnitDAO dudao = conn.getDeploymentUnit(duName); if (dudao != null) dudao.delete(); return null; } });
protected File findDeployDir(DeploymentUnitDAO dudao) { File f = new File(dudao.getDeploymentUnitDir()); if (f.exists()) return f; f = new File(_deployDir, dudao.getName()); if (f.exists()) { try { dudao.setDeploymentUnitDir(f.getCanonicalPath()); } catch (IOException e) { __log.warn("Could not update deployment unit directory for " + dudao.getName(), e); } return f; } return null; }
public Object call(ConfStoreConnection conn) { DeploymentUnitDAO duDao = conn.getDeploymentUnit(duName); if (duDao == null) { return null; } ProcessConfDAO pConfDao = duDao.getProcess(pid); if (pConfDao == null) { return null; } pConfDao.setProperty(propName, value); return null; } });
__log.debug("Loading deployment unit record from db: " + dudao.getName()); DeploymentUnitDir dud = new DeploymentUnitDir(dudir); dud.setName(dudao.getName()); dud.scan(); for (ProcessConfDAO p : dudao.getProcesses()) { TDeployment.Process pinfo = dud.getProcessDeployInfo(p.getType()); if (pinfo == null) { .getDeployDate(), props, p.getState(), eprContext, _configDir, generateProcessEventsAll); version = p.getVersion();
String errmsg = "Database out of synch for DU " + du.getName(); __log.warn(errmsg); dudao.delete(); dudao.setDeploymentUnitDir(deploymentUnitDirectory.getCanonicalPath()); } catch (IOException e1) { String errmsg = "Error getting canonical path for " + du.getName() ProcessConfDAO newDao = dudao.createProcess(pc.getProcessId(), pc.getType(), pc.getVersion()); newDao.setState(pc.getState()); for (Map.Entry<QName, Node> prop : pc.getProcessProperties().entrySet()) {
private File findBPELPackageInFileSystem(DeploymentUnitDAO dudao) { String duName = dudao.getName(); String registryCollectionPath = dudao.getDeploymentUnitDir(); try { if (tenantConfigRegistry.resourceExists(registryCollectionPath)) {
duDao.setDeploymentUnitDir(duLocation); ProcessConfDAO processConfDao = duDao.createProcess(pConf.getProcessId(), pConf.getType(), pConf.getVersion());
List<QName> processIds = new ArrayList<QName>(); for (ProcessConfDAO pConfDAO : duDAO.getProcesses()) { TDeployment.Process processDD = du.getProcessDeployInfo(pConfDAO.getType()); if (processDD == null) { processDD, du, duDAO.getDeployDate(), parentProcessStore.getEndpointReferenceContext(), tenantConfigContext);
public Object call(ConfStoreConnection conn) { Collection<DeploymentUnitDAO> dus = conn.getDeploymentUnits(); for (DeploymentUnitDAO du : dus) try { loaded.addAll(load(du)); } catch (Exception ex) { __log.error("Error loading DU from store: " + du.getName(), ex); } return null; } });
public Object call(ConfStoreConnection conn) { DeploymentUnitDAO dudao = conn.getDeploymentUnit(dudir.getName()); if (dudao == null) return null; ProcessConfDAO proc = dudao.getProcess(pid); if (proc == null) return null; proc.setProperty(propName, value); return null; } });
public Boolean call(ConfStoreConnection conn) { DeploymentUnitDAO duDao = conn.getDeploymentUnit(duName); if (duDao != null) { duDao.delete(); } return true; } });
public ProcessState call(ConfStoreConnection conn) { DeploymentUnitDAO duDao = conn.getDeploymentUnit(duName); if (duDao == null) { String errMsg = "Deployment unit " + duName + " not found."; log.error(errMsg); throw new ContextException(errMsg); } ProcessConfDAO pConfDao = duDao.getProcess(pid); if (pConfDao == null) { String errMsg = "Process " + pid + " not found in deployment unit " + duName + "."; log.error(errMsg); throw new ContextException(errMsg); } ProcessState old = pConfDao.getState(); pConfDao.setState(processState); return old; } });
public ProcessState call(ConfStoreConnection conn) { DeploymentUnitDAO dudao = conn.getDeploymentUnit(dudir.getName()); if (dudao == null) { String errmsg = __msgs.msgProcessNotFound(pid); __log.error(errmsg); throw new ContextException(errmsg); } ProcessConfDAO dao = dudao.getProcess(pid); if (dao == null) { String errmsg = __msgs.msgProcessNotFound(pid); __log.error(errmsg); throw new ContextException(errmsg); } ProcessState old = dao.getState(); dao.setState(state); pconf.setState(state); return old; } });