Changeset 3013 for trunk/sources/HeuristicLab.Grid.HiveBridge
- Timestamp:
- 03/12/10 13:42:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Grid.HiveBridge/3.2/HiveGridServerWrapper.cs
r2591 r3013 48 48 49 49 public JobState JobState(Guid guid) { 50 ResponseObject<SerializedJob Result> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false));50 ResponseObject<SerializedJob> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false)); 51 51 if (response != null) { 52 52 return HeuristicLab.Grid.JobState.Busy; … … 57 57 var jobObj = CreateJobObj(engine); 58 58 59 ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.Job > res = SavelyExecute(() => executionEngine.AddJob(jobObj));59 ResponseObject<HeuristicLab.Hive.Contracts.BusinessObjects.JobDto> res = SavelyExecute(() => executionEngine.AddJob(jobObj)); 60 60 return res == null ? Guid.Empty : res.Obj.Id; 61 61 } 62 62 63 63 public byte[] TryEndExecuteEngine(Guid guid) { 64 ResponseObject<SerializedJob Result> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false));64 ResponseObject<SerializedJob> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false)); 65 65 if (response != null && 66 66 response.Success && response.Obj != null) { 67 HeuristicLab.Hive.Engine.Job restoredJob = (HeuristicLab.Hive.Engine.Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJob ResultData);67 HeuristicLab.Hive.Engine.Job restoredJob = (HeuristicLab.Hive.Engine.Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJobData); 68 68 // only return the engine when it wasn't canceled (result is only a snapshot) 69 69 if (restoredJob.Progress == 1.0) { … … 86 86 87 87 private HeuristicLab.Hive.Contracts.BusinessObjects.SerializedJob CreateJobObj(byte[] serializedEngine) { 88 HeuristicLab.Hive.Contracts.BusinessObjects.Job jobObj = new HeuristicLab.Hive.Contracts.BusinessObjects.Job();88 HeuristicLab.Hive.Contracts.BusinessObjects.JobDto jobObj = new HeuristicLab.Hive.Contracts.BusinessObjects.JobDto(); 89 89 90 List<HivePluginInfo > requiredPlugins = new List<HivePluginInfo>();90 List<HivePluginInfoDto> requiredPlugins = new List<HivePluginInfoDto>(); 91 91 IEngine engine = RestoreEngine(serializedEngine, requiredPlugins); 92 92 … … 119 119 } 120 120 121 private IEngine RestoreEngine(byte[] serializedEngine, List<HivePluginInfo > requiredPlugins) {121 private IEngine RestoreEngine(byte[] serializedEngine, List<HivePluginInfoDto> requiredPlugins) { 122 122 // unzip and restore to determine the list of required plugins (NB: inefficient!) 123 123 MemoryStream memStream = new MemoryStream(serializedEngine); … … 144 144 145 145 foreach (IPluginDescription uniquePlugin in plugins) { 146 HivePluginInfo pluginInfo =147 new HivePluginInfo ();146 HivePluginInfoDto pluginInfo = 147 new HivePluginInfoDto(); 148 148 pluginInfo.Name = uniquePlugin.Name; 149 149 pluginInfo.Version = uniquePlugin.Version.ToString();
Note: See TracChangeset
for help on using the changeset viewer.