Changeset 3011 for trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngine.cs
- Timestamp:
- 03/12/10 10:57:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngine.cs
r2846 r3011 101 101 102 102 for (int i = 0; i < loops; i++) { 103 ResponseObject<Contracts.BusinessObjects.Job > res = executionEngineFacade.AddJob(jobObj);103 ResponseObject<Contracts.BusinessObjects.JobDto> res = executionEngineFacade.AddJob(jobObj); 104 104 jobId = res.Obj.Id; 105 105 } … … 112 112 Thread t = new Thread(() => { 113 113 IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl); 114 ResponseObject<SerializedJob Result> response = null;114 ResponseObject<SerializedJob> response = null; 115 115 Job restoredJob = null; 116 116 do { … … 128 128 if (response.Success && response.Obj != null) { 129 129 HiveLogger.Debug("HiveEngine: Results-polling - Got result!"); 130 restoredJob = (Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJob ResultData);130 restoredJob = (Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJobData); 131 131 HiveLogger.Debug("HiveEngine: Results-polling - IsSnapshotResult: " + (restoredJob.Progress<1.0)); 132 132 } … … 146 146 IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl); 147 147 int retryCount = 0; 148 ResponseObject<SerializedJob Result> response;148 ResponseObject<SerializedJob> response; 149 149 lock (locker) { 150 150 HiveLogger.Debug("HiveEngine: Abort - RequestSnapshot"); … … 174 174 } 175 175 } 176 SerializedJob ResultjobResult = response.Obj;176 SerializedJob jobResult = response.Obj; 177 177 if (jobResult != null) { 178 178 HiveLogger.Debug("HiveEngine: Results-polling - Got result!"); 179 job = (Job)PersistenceManager.RestoreFromGZip(jobResult.SerializedJob ResultData);179 job = (Job)PersistenceManager.RestoreFromGZip(jobResult.SerializedJobData); 180 180 ControlManager.Manager.ShowControl(job.Engine.CreateView()); 181 181 } … … 210 210 211 211 private HeuristicLab.Hive.Contracts.BusinessObjects.SerializedJob CreateJobObj() { 212 HeuristicLab.Hive.Contracts.BusinessObjects.Job jobObj =213 new HeuristicLab.Hive.Contracts.BusinessObjects.Job ();212 HeuristicLab.Hive.Contracts.BusinessObjects.JobDto jobObj = 213 new HeuristicLab.Hive.Contracts.BusinessObjects.JobDto(); 214 214 215 215 MemoryStream memStream = new MemoryStream(); … … 240 240 } 241 241 242 List<HivePluginInfo > pluginsNeeded =243 new List<HivePluginInfo >();242 List<HivePluginInfoDto> pluginsNeeded = 243 new List<HivePluginInfoDto>(); 244 244 foreach (IPluginDescription uniquePlugin in plugins) { 245 HivePluginInfo pluginInfo =246 new HivePluginInfo ();245 HivePluginInfoDto pluginInfo = 246 new HivePluginInfoDto(); 247 247 pluginInfo.Name = uniquePlugin.Name; 248 248 pluginInfo.Version = uniquePlugin.Version.ToString();
Note: See TracChangeset
for help on using the changeset viewer.