Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/14/10 16:52:55 (14 years ago)
Author:
cneumuel
Message:

#1233

  • made MockJob to execute asynchronously with the option to spinWait
  • added methods to IHiveService
  • implemented methods for Slave handling in HiveService
  • added more tests for server
  • changed db-schema of slaves and slavegroups
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/HiveExperimentClient.cs

    r5055 r5106  
    4646    private System.Timers.Timer timer;
    4747    private DateTime lastUpdateTime;
    48     private Guid? rootJobId;
     48    private Guid rootJobId;
    4949    private JobResultPoller jobResultPoller;
    5050
     
    535535          // fetch all Job objects to create the full tree of tree of HiveJob objects
    536536          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);
    538538          totalJobCount = allResults.Count();
    539539
     
    550550
    551551          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 footprint
    555           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);
    556556          progress.ProgressValue = (double)jobCount / totalJobCount;
    557557
    558558          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;
    560560            this.lastUpdateTime = this.HiveJob.Job.DateFinished.Value;
    561561            this.ExecutionState = Core.ExecutionState.Stopped;
    562562            OnStopped();
    563563          } else {
    564             this.ExecutionTime = DateTime.Now - this.HiveJob.Job.DateCreated.Value;
     564            this.ExecutionTime = DateTime.Now - this.HiveJob.Job.DateCreated;
    565565            this.lastUpdateTime = DateTime.Now;
    566566            this.ExecutionState = Core.ExecutionState.Started;
Note: See TracChangeset for help on using the changeset viewer.