Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1510


Ignore:
Timestamp:
04/03/09 14:32:24 (16 years ago)
Author:
kgrading
Message:

added the stubs to the HiveEngine (#571)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Engine/HiveEngine.cs

    r1503 r1510  
    3636  /// </summary>
    3737  public class HiveEngine : ItemBase, IEngine, IEditable {
     38    private Guid jobId;
    3839    private Job job;
    3940    public string HiveServerUrl { get; set; }
     
    7273    public void Execute() {
    7374      IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl);
     75     
    7476      DiscoveryService dService = new DiscoveryService();
    7577      PluginInfo depInfo = dService.GetDeclaringPlugin(typeof(HiveEngine));
    76 
    7778      List<PluginInfo> dependentPlugins = PluginManager.Manager.GetDependentPluginsRec(depInfo);
    7879
     
    8283      jobObj.PluginsNeeded = dependentPlugins;
    8384      ResponseObject<Contracts.BusinessObjects.Job> res = executionEngineFacade.AddJob(jobObj);
     85      jobId = res.Obj.Id;
    8486    }
    8587
     
    9395
    9496    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
    95111      throw new NotImplementedException();
    96112    }
Note: See TracChangeset for help on using the changeset viewer.