Changeset 12861 for branches/HiveStatistics
- Timestamp:
- 08/13/15 16:19:51 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 7 deleted
- 5 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HeuristicLab.Services.Hive.DataAccess-3.3.csproj
r12853 r12861 133 133 <Compile Include="Enums\CpuArchitecture.cs" /> 134 134 <Compile Include="Interfaces\IPersistenceManager.cs" /> 135 <Compile Include="Interfaces\ITransactionManager.cs" />136 135 <Compile Include="Manager\PersistenceManager.cs" /> 137 <Compile Include="Manager\TransactionManager.cs" />138 136 <Compile Include="Plugin.cs" /> 139 137 <Compile Include="HiveDataContext.cs"> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HeuristicLab.Services.Hive-3.3.csproj
r12857 r12861 118 118 </ItemGroup> 119 119 <ItemGroup> 120 <Compile Include="Convert.cs" />121 120 <Compile Include="Converter.cs" /> 122 121 <Compile Include="DataTransfer\Command.cs" /> … … 143 142 <Compile Include="HiveStatisticsGenerator.cs" /> 144 143 <Compile Include="Interfaces\IStatisticsGenerator.cs" /> 145 <Compile Include="Manager\NewEventManager.cs" />146 <Compile Include="Manager\NewHeartbeatManager.cs" />147 <Compile Include="NewHiveService.cs" />148 <Compile Include="OptimizedHiveDao.cs" />149 <Compile Include="HiveDao.cs" />150 144 <Compile Include="HiveJanitor.cs" /> 151 145 <Compile Include="HiveOperationContext.cs" /> 152 <Compile Include="Interfaces\IOptimizedHiveDao.cs" />153 <Compile Include="Interfaces\IHiveDao.cs" />154 146 <Compile Include="Interfaces\ITaskScheduler.cs" /> 155 147 <Compile Include="PerformanceLogger.cs" /> 156 <Compile Include="Scheduler\NewRoundRobinTaskScheduler.cs" />157 148 <Compile Include="Scheduler\TaskInfoForScheduler.cs" /> 158 149 <Compile Include="Scheduler\JobInfoForScheduler.cs" /> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs
r12860 r12861 40 40 [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, IgnoreExtensionDataObject = true)] 41 41 [HiveOperationContextBehavior] 42 public class NewHiveService : IHiveService {42 public class HiveService : IHiveService { 43 43 private static readonly DA.TaskState[] CompletedStates = { DA.TaskState.Finished, DA.TaskState.Aborted, DA.TaskState.Failed }; 44 44 … … 61 61 get { return ServiceLocator.Instance.EventManager; } 62 62 } 63 private NewHeartbeatManager HeartbeatManager {64 get { return ServiceLocator.Instance. NewHeartbeatManager; }63 private HeartbeatManager HeartbeatManager { 64 get { return ServiceLocator.Instance.HeartbeatManager; } 65 65 } 66 66 -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Interfaces/IServiceLocator.cs
r12691 r12861 28 28 IAuthorizationManager AuthorizationManager { get; } 29 29 IPersistenceManager PersistenceManager { get; } 30 IHiveDao HiveDao { get; }31 IOptimizedHiveDao OptimizedHiveDao { get; }32 30 IEventManager EventManager { get; } 33 31 IStatisticsGenerator StatisticsGenerator { get; } 34 ITransactionManager TransactionManager { get; }35 32 Access.IUserManager UserManager { get; } 36 NewHeartbeatManager NewHeartbeatManager { get; }37 33 HeartbeatManager HeartbeatManager { get; } 38 34 ITaskScheduler TaskScheduler { get; } 39 ITaskScheduler NewTaskScheduler { get; }40 35 } 41 36 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Interfaces/IStatisticsGenerator.cs
r12441 r12861 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic 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/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Manager/EventManager.cs
r12860 r12861 26 26 27 27 namespace HeuristicLab.Services.Hive.Manager { 28 public class NewEventManager : IEventManager {28 public class EventManager : IEventManager { 29 29 private const string SlaveTimeout = "Slave timed out."; 30 30 private IPersistenceManager PersistenceManager { -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Manager/HeartbeatManager.cs
r12860 r12861 30 30 31 31 namespace HeuristicLab.Services.Hive.Manager { 32 public class NewHeartbeatManager {32 public class HeartbeatManager { 33 33 private const string MutexName = "HiveTaskSchedulingMutex"; 34 34 … … 38 38 39 39 private ITaskScheduler TaskScheduler { 40 get { return ServiceLocator.Instance. NewTaskScheduler; }40 get { return ServiceLocator.Instance.TaskScheduler; } 41 41 } 42 42 -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Scheduler/RoundRobinTaskScheduler.cs
r12860 r12861 27 27 28 28 namespace HeuristicLab.Services.Hive { 29 public class NewRoundRobinTaskScheduler : ITaskScheduler {29 public class RoundRobinTaskScheduler : ITaskScheduler { 30 30 private IPersistenceManager PersistenceManager { 31 31 get { return ServiceLocator.Instance.PersistenceManager; } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/ServiceLocator.cs
r12857 r12861 26 26 27 27 namespace HeuristicLab.Services.Hive { 28 29 28 public class ServiceLocator : IServiceLocator { 30 29 private static IServiceLocator instance; … … 43 42 : new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString); 44 43 return new PersistenceManager(dataContext); 45 }46 }47 48 private IHiveDao hiveDao;49 public IHiveDao HiveDao {50 get {51 if (hiveDao == null) hiveDao = new HiveDao();52 return hiveDao;53 }54 }55 56 public IOptimizedHiveDao OptimizedHiveDao {57 get {58 var dataContext = HiveOperationContext.Current != null59 ? HiveOperationContext.Current.DataContext60 : new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString);61 return new OptimizedHiveDao(dataContext);62 44 } 63 45 } … … 82 64 public IEventManager EventManager { 83 65 get { 84 if (eventManager == null) eventManager = new NewEventManager();66 if (eventManager == null) eventManager = new EventManager(); 85 67 return eventManager; 86 68 } … … 92 74 } 93 75 94 private ITransactionManager transactionManager;95 public ITransactionManager TransactionManager {96 get {97 if (transactionManager == null) transactionManager = new TransactionManager();98 return transactionManager;99 }100 }101 102 76 private Access.IUserManager userManager; 103 77 public Access.IUserManager UserManager { … … 105 79 if (userManager == null) userManager = new Access.UserManager(); 106 80 return userManager; 107 }108 }109 110 private NewHeartbeatManager newheartbeatManager;111 public NewHeartbeatManager NewHeartbeatManager {112 get {113 if (newheartbeatManager == null) newheartbeatManager = new NewHeartbeatManager();114 return newheartbeatManager;115 81 } 116 82 } … … 131 97 } 132 98 } 133 134 private ITaskScheduler newtaskScheduler;135 public ITaskScheduler NewTaskScheduler {136 get {137 if (newtaskScheduler == null) newtaskScheduler = new RoundRobinTaskScheduler();138 return newtaskScheduler;139 }140 }141 99 } 142 100 }
Note: See TracChangeset
for help on using the changeset viewer.