Changeset 6371 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Manager/ConfigManager.cs
- Timestamp:
- 06/06/11 18:33:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Manager/ConfigManager.cs
r6357 r6371 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 39 39 40 40 /// <summary> 41 /// if the Sleepingis true, the Slave won't accept any new jobs41 /// if Asleep is true, the Slave won't accept any new jobs 42 42 /// </summary> 43 43 public bool Asleep { get; set; } 44 45 //public Core Core { get; set; }46 44 private JobManager jobManager; 47 45 private Slave slave; … … 111 109 public Dictionary<Guid, TimeSpan> GetExecutionTimeOfAllJobs() { 112 110 Dictionary<Guid, TimeSpan> prog = new Dictionary<Guid, TimeSpan>(); 113 114 //lock (slaveJobs) {115 // foreach (KeyValuePair<Guid, SlaveJob> kvp in slaveJobs) {116 // Executor e = kvp.Value.JobExecutor;117 // if (e != null && !kvp.Value.Finished) {118 // //don't include jobs in hb's which are currently serializing119 // if (e.SendHeartbeatForExecutor) {120 // prog[e.JobId] = e.ExecutionTime;121 // }122 // }123 // }124 //}125 111 prog = jobManager.GetExecutionTimes(); 126 127 112 return prog; 128 113 } … … 159 144 160 145 /// <summary> 161 /// Generate a guid based on mac address of the first found nic (yes, mac addresses are not unique...). 146 /// Generate a guid based on mac address of the first found nic (yes, mac addresses are not unique...) 147 /// and the machine name. 162 148 /// Format: 163 149 /// … … 169 155 /// The mac address is saved in the last 48 bits of the Data 4 segment 170 156 /// of the guid (first 2 bytes of Data 4 are reserved). 171 /// D1 contains the name of the machine.157 /// D1 contains the hash of the machinename. 172 158 /// </summary> 173 159 private static Guid GetUniqueMachineIdFromMac() {
Note: See TracChangeset
for help on using the changeset viewer.