Changeset 5526 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer
- Timestamp:
- 02/21/11 17:35:42 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Job.cs
r5511 r5526 39 39 [DataMember] 40 40 public DateTime? LastHeartbeat { get; set; } 41 [DataMember] 42 public bool IsParentJob { get; set; } 43 [DataMember] 44 public bool FinishWhenChildJobsFinished { get; set; } 41 45 42 46 public Job() { … … 49 53 this.PluginsNeededIds = new List<Guid>(original.PluginsNeededIds); 50 54 this.LastHeartbeat = original.LastHeartbeat; 55 this.IsParentJob = original.IsParentJob; 56 this.FinishWhenChildJobsFinished = original.FinishWhenChildJobsFinished; 51 57 } 52 58 public override IDeepCloneable Clone(Cloner cloner) { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/JobState.cs
r5511 r5526 33 33 Waiting, 34 34 35 /// <summary>36 /// The job is set to Finished when all child jobs are Finished.37 /// </summary>38 FinishOnChildJobsFinished,35 ///// <summary> 36 ///// The job is set to Finished when all child jobs are Finished. 37 ///// </summary> 38 //FinishOnChildJobsFinished, 39 39 40 /// <summary>41 /// The job is paused and waits on the server to be sent back to a Slave when all of its child jobs are Finished.42 /// </summary>43 ResumeOnChildJobsFinished,40 ///// <summary> 41 ///// The job is paused and waits on the server to be sent back to a Slave when all of its child jobs are Finished. 42 ///// </summary> 43 //ResumeOnChildJobsFinished, 44 44 45 45 /// <summary> … … 81 81 /// </summary> 82 82 public static bool IsWaiting(this JobState jobState) { 83 return jobState == JobState.Waiting || 84 jobState == JobState.FinishOnChildJobsFinished; 83 return jobState == JobState.Waiting; 85 84 } 86 85 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/LightweightJob.cs
r5511 r5526 48 48 49 49 public LightweightJob(Job job) { 50 this.Id = job.Id; 50 51 this.ExecutionTime = job.ExecutionTime; 51 52 this.ParentJobId = job.ParentJobId; 52 this.StateLog = new List<StateLog>(); 53 this.StateLog = new List<StateLog>(job.StateLog); 54 this.State = job.State; 53 55 } 54 56 protected LightweightJob(LightweightJob original, Cloner cloner) … … 57 59 this.ParentJobId = original.ParentJobId; 58 60 this.StateLog = new List<StateLog>(original.StateLog); 61 this.State = original.State; 59 62 } 60 63 public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset
for help on using the changeset viewer.