public int SetJobProperty(int iProcessId, string strPropName, string strPropValue) { lock (ms_accessJobPropsLock) { GalaxyJobProperties jobProperties = null; if (m_jobProps.ContainsKey(iProcessId)) { jobProperties = m_jobProps[iProcessId]; } else { jobProperties = new GalaxyJobProperties(); m_jobProps.Add(iProcessId, jobProperties); } if (jobProperties.Properties.ContainsKey(strPropName)) { jobProperties.Properties[strPropName] = strPropValue; } else { jobProperties.Properties.Add(strPropName, strPropValue); } } return(0); }
public int GetJobProperties(int iProcessId, out GalaxyJobProperties jobProperties) { lock (ms_accessJobPropsLock) { if (m_jobProps.ContainsKey(iProcessId)) { jobProperties = m_jobProps[iProcessId]; } else { jobProperties = null; return(-1); } } return(0); }
public GalaxyJob() { m_resourceFileList = new List <ResourceFilePair>(); m_dependentJobs = new List <string>(); m_jobProps = new GalaxyJobProperties(); }