public int FICCCalc(string[][] arrOfArr, SubmitData submitData) { lock(lockObj) { localJobVecID++; List<Job> jobList = new List<Job>(); List<string> codeList = new List<string>(); foreach (string[] arr in arrOfArr) { string code = localJobVecID + "_" + arr[0]; string param = arr[1]; Job job = client.GetNewJob(); job.clientSideJobCode = code; job.parameter = param; job.jobClassName = DPSClientXMLRPCBridgeConsoleSetting.Instance.FICCJobClassName; job.processorName = DPSClientXMLRPCBridgeConsoleSetting.Instance.FICCProcessorName; codeToJob.Add(code, job); jobList.Add(job); codeList.Add(code); } submitData.TotalJobCount = codeList.Count; currentJobSubmitMsgID = client.SubmitJob(jobList); JobSubmitCallbackARE.WaitOne(); int jobListID = currentJobSubmitRetValue; currentJobSubmitRetValue = -1; jobVecIDToCodeList.Add(jobListID, codeList); jobVecSubmitData.Add(jobListID, submitData); return jobListID; } }
public int EQTCalc(string[][] obj) { SubmitData submitData = new SubmitData(); submitData.SubmitTime = DateTime.Now; int jobVecID = DSDPSClientXMLRPCBridge.Instance.EQTCalc(obj, submitData); Console.WriteLine("[eqtcalc] jobVecID=" + jobVecID); return jobVecID; }