Changeset 1510
- Timestamp:
- 04/03/09 14:32:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Engine/HiveEngine.cs
r1503 r1510 36 36 /// </summary> 37 37 public class HiveEngine : ItemBase, IEngine, IEditable { 38 private Guid jobId; 38 39 private Job job; 39 40 public string HiveServerUrl { get; set; } … … 72 73 public void Execute() { 73 74 IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl); 75 74 76 DiscoveryService dService = new DiscoveryService(); 75 77 PluginInfo depInfo = dService.GetDeclaringPlugin(typeof(HiveEngine)); 76 77 78 List<PluginInfo> dependentPlugins = PluginManager.Manager.GetDependentPluginsRec(depInfo); 78 79 … … 82 83 jobObj.PluginsNeeded = dependentPlugins; 83 84 ResponseObject<Contracts.BusinessObjects.Job> res = executionEngineFacade.AddJob(jobObj); 85 jobId = res.Obj.Id; 84 86 } 85 87 … … 93 95 94 96 public void Abort() { 97 IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl); 98 99 100 //This are just Stubs on the server right now. There won't be any effect right now... 101 executionEngineFacade.AbortJob(jobId); 102 executionEngineFacade.RequestSnapshot(Guid); 103 104 //Requests the last result. 105 //false: There will always be a result that is been sent back 106 //true: if you hit "requestsnapshot" before - it won't send you the job back if 107 // the snapshot hasn't been submitted to the server (because the client needs 108 // more time). 109 executionEngineFacade.GetLastResult(jobId, false); 110 95 111 throw new NotImplementedException(); 96 112 }
Note: See TracChangeset
for help on using the changeset viewer.