Changeset 12694 for branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Services.Hive/3.3/Manager
- Timestamp:
- 07/09/15 13:07:30 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.Orienteering
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering
- Property svn:mergeinfo changed
-
Property
svn:global-ignores
set to
*.nuget
packages
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Services.Hive
- Property svn:mergeinfo changed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Services.Hive/3.3/Manager/AuthorizationManager.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Services.Hive/3.3/Manager/EventManager.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 122 122 /// </summary> 123 123 private void DeleteObsoleteSlaves() { 124 var slaves = dao.GetSlaves(x => x.IsDisposable.GetValueOrDefault() && x.SlaveState == SlaveState.Offline && (DateTime.Now - x.LastHeartbeat) > HeuristicLab.Services.Hive.Properties.Settings.Default.SweepInterval); 125 foreach (DT.Slave slave in slaves) dao.DeleteSlave(slave.Id); 124 var slaves = dao.GetSlaves(x => x.IsDisposable.GetValueOrDefault() && 125 x.SlaveState == SlaveState.Offline && 126 (DateTime.Now - x.LastHeartbeat) > Hive.Properties.Settings.Default.SweepInterval) 127 .Select(x => x.Id) 128 .ToArray(); 129 130 foreach (Guid slaveId in slaves) { 131 var downtimesAvailable = dao.GetDowntimes(x => x.ResourceId == slaveId).Any(); 132 if (!downtimesAvailable) { 133 dao.DeleteSlave(slaveId); 134 } 135 } 126 136 } 127 137 } -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Services.Hive/3.3/Manager/HeartbeatManager.cs
r11185 r12694 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab.
Note: See TracChangeset
for help on using the changeset viewer.