Changeset 5093 for branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/LifecycleManager.cs
- Timestamp:
- 12/13/10 14:13:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/LifecycleManager.cs
r5000 r5093 35 35 private bool shutdownRequested; 36 36 private PluginManager pm; 37 38 private Dictionary<Guid, DateTime> lastHeartbeats = new Dictionary<Guid, DateTime>(); 39 public Dictionary<Guid, DateTime> LastHeartbeats { 40 get { return lastHeartbeats; } 41 } 42 43 /// <summary> 44 /// Contains a list job JobIds which have been sent to a slave, but the slave has not yet sent 45 /// a jobProgress of the job with a heartbeat, because he has not finished downloading/deserializing it. 46 /// The number value indicates a TimeToLive count that is decremented with each server-heartbeat. 47 /// When the number reaches zero, the jobs is assumed to be lost and is set Offline again. 48 /// </summary> 49 private Dictionary<Guid, int> newAssignedJobs = new Dictionary<Guid, int>(); 50 public Dictionary<Guid, int> NewAssignedJobs { 51 get { return newAssignedJobs; } 52 } 53 54 /// <summary> 55 /// When a slave reconnects and he has finished results waiting it calls IsJobStillNeeded. If the finished 56 /// result has not yet been collected from anywhere else, the job will be sent by the slave and the job state is set to Pending. 57 /// Now the job be in pending state until it is received from the reconnected slave or the TimeToLive value of this dictionary has reached zero. 58 /// </summary> 59 private Dictionary<Guid, int> pendingJobs = new Dictionary<Guid, int>(); 60 public Dictionary<Guid, int> PendingJobs { 61 get { return pendingJobs; } 62 } 37 63 38 64 private TimeSpan interval = new TimeSpan(0, 0, 10);
Note: See TracChangeset
for help on using the changeset viewer.