- Timestamp:
- 07/18/14 12:35:00 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Clients.Hive.Slave/3.3/Manager/ConfigManager.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 117 117 st.JobsFetched = SlaveStatusInfo.TasksFetched; 118 118 st.JobsFailed = SlaveStatusInfo.TasksFailed; 119 st.ExceptionsOccured = SlaveStatusInfo.ExceptionsOccured; 119 120 120 121 st.Jobs = jobManager.GetExecutionTimes().Select(x => new TaskStatus { TaskId = x.Key, ExecutionTime = x.Value }).ToList(); -
branches/HiveStatistics/sources/HeuristicLab.Clients.Hive.Slave/3.3/Manager/EventLogManager.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HiveStatistics/sources/HeuristicLab.Clients.Hive.Slave/3.3/Manager/HeartbeatManager.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Threading; 25 25 using HeuristicLab.Clients.Hive.SlaveCore.Properties; 26 using HeuristicLab.Common; 26 27 27 28 namespace HeuristicLab.Clients.Hive.SlaveCore { … … 116 117 if (msgs == null) { 117 118 SlaveClientCom.Instance.LogMessage("Error getting response from HB"); 119 OnExceptionOccured(new Exception("Error getting response from HB")); 118 120 } else { 119 121 SlaveClientCom.Instance.LogMessage("HB Response received (" + msgs.Count + "): "); … … 126 128 catch (Exception e) { 127 129 SlaveClientCom.Instance.LogMessage("Heartbeat thread failed: " + e.ToString()); 130 OnExceptionOccured(e); 128 131 } 129 132 waitHandle.WaitOne(this.interval); … … 131 134 SlaveClientCom.Instance.LogMessage("Heartbeat thread stopped"); 132 135 } 136 137 #region Eventhandler 138 public event EventHandler<EventArgs<Exception>> ExceptionOccured; 139 private void OnExceptionOccured(Exception e) { 140 var handler = ExceptionOccured; 141 if (handler != null) handler(this, new EventArgs<Exception>(e)); 142 } 143 #endregion 133 144 } 134 145 } -
branches/HiveStatistics/sources/HeuristicLab.Clients.Hive.Slave/3.3/Manager/PluginManager.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HiveStatistics/sources/HeuristicLab.Clients.Hive.Slave/3.3/Manager/TaskManager.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 71 71 try { 72 72 if (slaveTasks.ContainsKey(task.Id)) { 73 SlaveStatusInfo.Increment TasksFailed();73 SlaveStatusInfo.IncrementExceptionOccured(); 74 74 throw new TaskAlreadyRunningException(task.Id); 75 75 } else { … … 185 185 slaveTask.TaskStopped += new EventHandler<EventArgs<Guid>>(slaveTask_TaskStopped); 186 186 slaveTask.TaskFailed += new EventHandler<EventArgs<Guid, Exception>>(slaveTask_TaskFailed); 187 slaveTask.ExceptionOccured += new EventHandler<EventArgs<Guid, Exception>>(slaveTask_ExceptionOccured); 187 188 } 188 189 … … 192 193 slaveTask.TaskStopped -= new EventHandler<EventArgs<Guid>>(slaveTask_TaskStopped); 193 194 slaveTask.TaskFailed -= new EventHandler<EventArgs<Guid, Exception>>(slaveTask_TaskFailed); 195 slaveTask.ExceptionOccured -= new EventHandler<EventArgs<Guid, Exception>>(slaveTask_ExceptionOccured); 194 196 } 195 197 … … 218 220 try { 219 221 taskData = slaveTask.GetTaskData(); 222 if (taskData == null) throw new SerializationException(); 220 223 SlaveStatusInfo.IncrementTasksFinished(); 221 224 OnTaskPaused(slaveTask, taskData); … … 240 243 try { 241 244 taskData = slaveTask.GetTaskData(); 245 if (taskData == null) throw new SerializationException(); 242 246 SlaveStatusInfo.IncrementTasksFinished(); 243 247 OnTaskStopped(slaveTask, taskData); … … 262 266 try { 263 267 taskData = slaveTask.GetTaskData(); 268 if (taskData == null) throw new SerializationException(); 264 269 } 265 270 catch { /* taskData will be null */ } 266 271 SlaveStatusInfo.IncrementTasksFailed(); 267 272 OnTaskFailed(slaveTask, taskData, e.Value2); 273 } 274 275 private void slaveTask_ExceptionOccured(object sender, EventArgs<Guid, Exception> e) { 276 SlaveTask slaveTask; 277 slaveTasksLocker.EnterUpgradeableReadLock(); 278 try { 279 slaveTask = slaveTasks[e.Value]; 280 RemoveSlaveTask(e.Value, slaveTask); 281 } 282 finally { slaveTasksLocker.ExitUpgradeableReadLock(); } 283 284 SlaveStatusInfo.IncrementExceptionOccured(); 285 OnExceptionOccured(slaveTask, e.Value2); 268 286 } 269 287 #endregion … … 294 312 } 295 313 314 public event EventHandler<EventArgs<SlaveTask, Exception>> ExceptionOccured; 315 private void OnExceptionOccured(SlaveTask slaveTask, Exception exception) { 316 var handler = ExceptionOccured; 317 if (handler != null) handler(this, new EventArgs<SlaveTask, Exception>(slaveTask, exception)); 318 } 319 296 320 public event EventHandler<EventArgs<SlaveTask>> TaskAborted; 297 321 private void OnTaskAborted(SlaveTask slaveTask) {
Note: See TracChangeset
for help on using the changeset viewer.