- Timestamp:
- 03/22/11 14:11:11 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/ConfigManager.cs
r5711 r5789 29 29 namespace HeuristicLab.Clients.Hive.SlaveCore { 30 30 /// <summary> 31 /// accesses the Server and sends his data (uuid, uptimes, hardware config)31 /// accesses the server and sends his data (uuid, uptimes, hardware config) 32 32 /// </summary> 33 33 public class ConfigManager { … … 65 65 /// <returns>the ClientInfo object</returns> 66 66 public Slave GetClientInfo() { 67 //TODO: how to display connectedsince in gui?68 //hardwareInfo.Login = WcfService.Instance.ConnectedSince;69 67 return slave; 70 68 } … … 75 73 /// <returns></returns> 76 74 public StatusCommons GetStatusForClientConsole() { 77 //Todo: Locking78 75 StatusCommons st = new StatusCommons(); 79 76 st.ClientGuid = slave.Id; … … 143 140 144 141 /// <summary> 145 /// MegaBytes142 /// returns total physical memory of the machine in MB 146 143 /// </summary> 147 144 private static int? GetPhysicalMemory() { … … 154 151 155 152 /// <summary> 156 /// Mhz153 /// returns CPU frequence of the machine in Mhz 157 154 /// </summary> 158 155 private static int? GetCpuSpeed() { … … 189 186 } 190 187 191 Guid guid = new Guid(0, 0, 0, b); 188 // also get machine name and save it to the first 4 bytes 189 Guid guid = new Guid(Environment.MachineName.GetHashCode(), 0, 0, b); 192 190 return guid; 193 191 } else … … 239 237 } 240 238 239 /// <summary> 240 /// returns free memory of machine in MB 241 /// </summary> 241 242 public static int GetFreeMemory() { 242 243 int mb = 0; -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs
r5786 r5789 438 438 private void StartJobInAppDomain(Job myJob, JobData jobData) { 439 439 clientCom.LogMessage("Received new job with id " + myJob.Id); 440 if (engines.ContainsKey(myJob.Id)) 441 throw new Exception("Job with key " + myJob.Id + " already exists"); 442 440 443 String pluginDir = Path.Combine(PluginCache.Instance.PluginTempBaseDir, myJob.Id.ToString()); 441 444 bool pluginsPrepared = false; -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
r5782 r5789 82 82 catch (Exception e) { 83 83 this.currentException = e; 84 Job_JobFailed(this, new HeuristicLab.Common.EventArgs<Exception>(e)); 84 85 } 85 86 }
Note: See TracChangeset
for help on using the changeset viewer.