- Timestamp:
- 08/03/09 14:23:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/GridExecuter.cs
r2222 r2223 27 27 using System.Net; 28 28 using System.ServiceModel; 29 using HeuristicLab.CEDMA.DB.Interfaces;30 using HeuristicLab.CEDMA.DB;31 29 using System.ServiceModel.Description; 32 30 using System.Linq; … … 38 36 using System.Threading; 39 37 using HeuristicLab.Modeling; 38 using HeuristicLab.Modeling.Database; 40 39 41 40 namespace HeuristicLab.CEDMA.Server { 42 41 public class GridExecuter : ExecuterBase { 43 42 private JobManager jobManager; 44 private Dictionary<AsyncGridResult, IAlgorithm> activeAlgorithms;43 private Dictionary<AsyncGridResult, HeuristicLab.Modeling.IAlgorithm> activeAlgorithms; 45 44 46 45 private TimeSpan StartJobInterval { … … 56 55 } 57 56 58 public GridExecuter(IDispatcher dispatcher, IStore store, IGridServer server)59 : base(dispatcher, store) {57 public GridExecuter(IDispatcher dispatcher, IGridServer server, IModelingDatabase databaseService) 58 : base(dispatcher, databaseService) { 60 59 this.jobManager = new JobManager(server); 61 activeAlgorithms = new Dictionary<AsyncGridResult, IAlgorithm>();60 activeAlgorithms = new Dictionary<AsyncGridResult, HeuristicLab.Modeling.IAlgorithm>(); 62 61 jobManager.Reset(); 63 62 } … … 71 70 Thread.Sleep(StartJobInterval); 72 71 // get an execution from the dispatcher and execute in grid via job-manager 73 IAlgorithm algorithm = Dispatcher.GetNextJob();72 HeuristicLab.Modeling.IAlgorithm algorithm = Dispatcher.GetNextJob(); 74 73 if (algorithm != null) { 75 74 AtomicOperation op = new AtomicOperation(algorithm.Engine.OperatorGraph.InitialOperator, algorithm.Engine.GlobalScope); … … 91 90 if (readyHandleIndex != WaitHandle.WaitTimeout) { 92 91 WaitHandle readyHandle = whArr[readyHandleIndex]; 93 IAlgorithm finishedAlgorithm = null;92 HeuristicLab.Modeling.IAlgorithm finishedAlgorithm = null; 94 93 AsyncGridResult finishedResult = null; 95 94 lock (activeAlgorithms) { … … 138 137 string[] retVal = new string[activeAlgorithms.Count]; 139 138 int i = 0; 140 foreach ( IAlgorithm a in activeAlgorithms.Values) {139 foreach (HeuristicLab.Modeling.IAlgorithm a in activeAlgorithms.Values) { 141 140 retVal[i++] = a.Name + " " + a.Dataset.GetVariableName(a.TargetVariable); 142 141 }
Note: See TracChangeset
for help on using the changeset viewer.