Changeset 5718 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer
- Timestamp:
- 03/16/11 17:02:15 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Job.cs
r5614 r5718 46 46 this.PluginsNeededIds = new List<Guid>(); 47 47 } 48 49 50 public override string ToString() {51 return string.Format("State: {0}, SlaveId: {1}, DateCreated: {2}, DateCalculated: {3}, CoresNeeded: {4}, MemoryNeeded: {5}", State, CurrentStateLog.SlaveId, DateCreated, CoresNeeded, MemoryNeeded);52 }53 54 48 } 55 49 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/LightweightJob.cs
r5636 r5718 38 38 public JobState State { get; set; } 39 39 40 public StateLog CurrentStateLog { get { return StateLog.Last (); } }41 public DateTime DateCreated { get { return StateLog.First().DateTime; } }42 public DateTime? DateFinished { get { return CurrentStateLog.State == JobState.Finished? new DateTime?(CurrentStateLog.DateTime) : null; } }40 public StateLog CurrentStateLog { get { return StateLog.LastOrDefault(); } } 41 public DateTime? DateCreated { get { return StateLog.Count > 0 ? new DateTime?(StateLog.First().DateTime) : null; } } 42 public DateTime? DateFinished { get { return (StateLog.Count > 0 && CurrentStateLog.State == JobState.Finished) ? new DateTime?(CurrentStateLog.DateTime) : null; } } 43 43 44 44 public LightweightJob() {
Note: See TracChangeset
for help on using the changeset viewer.