Changeset 2092 for trunk/sources/HeuristicLab.Hive.Server.Core
- Timestamp:
- 06/25/09 12:29:58 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.Core/3.2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientCommunicator.cs
r2082 r2092 384 384 Job job2Calculate = scheduler.GetNextJobForClient(clientId); 385 385 if (job2Calculate != null) { 386 ComputableJob computableJob =386 SerializedJob computableJob = 387 387 jobAdapter.GetComputableJob(job2Calculate.Id); 388 388 … … 435 435 clientAdapter.GetById(clientId); 436 436 437 ComputableJob job =438 new ComputableJob();437 SerializedJob job = 438 new SerializedJob(); 439 439 440 440 if (job != null) { … … 481 481 return response; 482 482 } 483 job.SerializedJob = result;483 job.SerializedJobData = result; 484 484 job.JobInfo.Percentage = percentage; 485 485 486 486 if (finished) { 487 487 job.JobInfo.State = State.finished; 488 job.SerializedJob = result;488 job.SerializedJobData = result; 489 489 } 490 490 -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ExecutionEngineFacade.cs
r2082 r2092 36 36 #region IExecutionEngineFacade Members 37 37 38 public ResponseObject<Job> AddJob( ComputableJob job) {38 public ResponseObject<Job> AddJob(SerializedJob job) { 39 39 return jobManager.AddNewJob(job); 40 40 } -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/JobManager.cs
r2086 r2092 74 74 75 75 if (job != null) { 76 ComputableJob computableJob =77 new ComputableJob();76 SerializedJob computableJob = 77 new SerializedJob(); 78 78 computableJob.JobInfo = 79 79 job; … … 82 82 if (lastJobResult != null) { 83 83 computableJob.JobInfo.Percentage = lastJobResult.Percentage; 84 computableJob.SerializedJob = lastJobResult.Result;84 computableJob.SerializedJobData = lastJobResult.Result; 85 85 86 86 jobAdapter.UpdateComputableJob(computableJob); … … 196 196 /// <param name="job"></param> 197 197 /// <returns></returns> 198 public ResponseObject<Job> AddNewJob( ComputableJob job) {198 public ResponseObject<Job> AddNewJob(SerializedJob job) { 199 199 ISession session = factory.GetSessionForCurrentThread(); 200 200 … … 216 216 return response; 217 217 } 218 if (job.SerializedJob == null) {218 if (job.SerializedJobData == null) { 219 219 response.StatusMessage = ApplicationConstants.RESPONSE_JOB_JOB_NULL; 220 220 response.Success = false; -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ServerConsoleFacade.cs
r2082 r2092 99 99 } 100 100 101 public ResponseObject<Job> AddNewJob( ComputableJob job) {101 public ResponseObject<Job> AddNewJob(SerializedJob job) { 102 102 secMan.Authorize("AddJob", sessionID, job.JobInfo.Id); 103 103 return jobManager.AddNewJob(job);
Note: See TracChangeset
for help on using the changeset viewer.