Changeset 5106 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveExperimentClient.cs
- Timestamp:
- 12/14/10 16:52:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveExperimentClient.cs
r5055 r5106 46 46 private System.Timers.Timer timer; 47 47 private DateTime lastUpdateTime; 48 private Guid ?rootJobId;48 private Guid rootJobId; 49 49 private JobResultPoller jobResultPoller; 50 50 … … 535 535 // fetch all Job objects to create the full tree of tree of HiveJob objects 536 536 progress.Status = "Downloading list of jobs..."; 537 IEnumerable<LightweightJob> allResults = service.Obj.GetLightweightChildJobs(rootJobId .Value, true, true);537 IEnumerable<LightweightJob> allResults = service.Obj.GetLightweightChildJobs(rootJobId, true, true); 538 538 totalJobCount = allResults.Count(); 539 539 … … 550 550 551 551 jobCount = 1; 552 progress.Status = string.Format("Deserializing {0} of {1} jobs... ({2} kb)", jobCount, totalJobCount, allJobDatas[this.rootJobId .Value].Data.Count() / 1024);553 this.HiveJob = new HiveJob(allJobs[this.rootJobId .Value], allJobDatas[this.rootJobId.Value], false);554 allJobDatas.Remove(this.rootJobId .Value); // reduce memory footprint555 allJobs.Remove(this.rootJobId .Value);552 progress.Status = string.Format("Deserializing {0} of {1} jobs... ({2} kb)", jobCount, totalJobCount, allJobDatas[this.rootJobId].Data.Count() / 1024); 553 this.HiveJob = new HiveJob(allJobs[this.rootJobId], allJobDatas[this.rootJobId], false); 554 allJobDatas.Remove(this.rootJobId); // reduce memory footprint 555 allJobs.Remove(this.rootJobId); 556 556 progress.ProgressValue = (double)jobCount / totalJobCount; 557 557 558 558 if (this.HiveJob.Job.DateFinished.HasValue) { 559 this.ExecutionTime = this.HiveJob.Job.DateFinished.Value - this.HiveJob.Job.DateCreated .Value;559 this.ExecutionTime = this.HiveJob.Job.DateFinished.Value - this.HiveJob.Job.DateCreated; 560 560 this.lastUpdateTime = this.HiveJob.Job.DateFinished.Value; 561 561 this.ExecutionState = Core.ExecutionState.Stopped; 562 562 OnStopped(); 563 563 } else { 564 this.ExecutionTime = DateTime.Now - this.HiveJob.Job.DateCreated .Value;564 this.ExecutionTime = DateTime.Now - this.HiveJob.Job.DateCreated; 565 565 this.lastUpdateTime = DateTime.Now; 566 566 this.ExecutionState = Core.ExecutionState.Started;
Note: See TracChangeset
for help on using the changeset viewer.