Changeset 1503


Ignore:
Timestamp:
04/03/09 13:06:55 (12 years ago)
Author:
kgrading
Message:

engine now determines the needed plugins for the job (#570)

File:
1 edited

Legend:

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

    r1487 r1503  
    2828using HeuristicLab.Hive.Contracts.Interfaces;
    2929using HeuristicLab.Hive.Contracts;
     30using HeuristicLab.PluginInfrastructure;
    3031
    3132namespace HeuristicLab.Hive.Engine {
     
    7172    public void Execute() {
    7273      IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl);
     74      DiscoveryService dService = new DiscoveryService();
     75      PluginInfo depInfo = dService.GetDeclaringPlugin(typeof(HiveEngine));
     76
     77      List<PluginInfo> dependentPlugins = PluginManager.Manager.GetDependentPluginsRec(depInfo);
     78
    7379      HeuristicLab.Hive.Contracts.BusinessObjects.Job jobObj = new HeuristicLab.Hive.Contracts.BusinessObjects.Job();
    7480      jobObj.SerializedJob = PersistenceManager.SaveToGZip(job);
    7581      jobObj.State = HeuristicLab.Hive.Contracts.BusinessObjects.State.offline;
     82      jobObj.PluginsNeeded = dependentPlugins;
    7683      ResponseObject<Contracts.BusinessObjects.Job> res = executionEngineFacade.AddJob(jobObj);
    7784    }
Note: See TracChangeset for help on using the changeset viewer.