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; } });
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 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; } });