Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/18/09 15:01:10 (15 years ago)
Author:
gkronber
Message:

Refactored JobManager and added a plugin that contains a bridge between grid and hive. The bridge allows to use the execution engine service of Hive as a grid server. This way CEDMA job execution and DistributedEngine job execution can either use Hive or Grid as backend. #642 (Hive backend for CEDMA)

Location:
trunk/sources/HeuristicLab.CEDMA.Server/3.3
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/GridExecuter.cs

    r2057 r2058  
    5353    }
    5454
    55     public GridExecuter(IDispatcher dispatcher, IStore store, string gridUrl)
     55    public GridExecuter(IDispatcher dispatcher, IStore store, IGridServer server)
    5656      : base(dispatcher, store) {
    57       this.jobManager = new JobManager(gridUrl);
     57      this.jobManager = new JobManager(server);
    5858      activeAlgorithms = new Dictionary<AsyncGridResult, IAlgorithm>();
    5959      jobManager.Reset();
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/HeuristicLab.CEDMA.Server-3.3.csproj

    r2057 r2058  
    9292  <ItemGroup>
    9393    <Compile Include="ExecuterBase.cs" />
    94     <Compile Include="HiveExecuter.cs">
    95       <SubType>Code</SubType>
    96     </Compile>
    9794    <Compile Include="IExecuter.cs" />
    9895    <Compile Include="DispatcherBase.cs" />
     
    136133      <Name>HeuristicLab.Data-3.2</Name>
    137134    </ProjectReference>
     135    <ProjectReference Include="..\..\HeuristicLab.Grid.HiveBridge\3.2\HeuristicLab.Grid.HiveBridge-3.2.csproj">
     136      <Project>{DFAC1BEA-6D9D-477F-AC7B-E64977644DDB}</Project>
     137      <Name>HeuristicLab.Grid.HiveBridge-3.2</Name>
     138    </ProjectReference>
    138139    <ProjectReference Include="..\..\HeuristicLab.Grid\3.2\HeuristicLab.Grid-3.2.csproj">
    139140      <Project>{545CE756-98D8-423B-AC2E-6E7D70926E5C}</Project>
    140141      <Name>HeuristicLab.Grid-3.2</Name>
    141     </ProjectReference>
    142     <ProjectReference Include="..\..\HeuristicLab.Hive.Engine\3.2\HeuristicLab.Hive.Engine-3.2.csproj">
    143       <Project>{C8FEDAC1-0326-4293-B585-F0FEDDEDFC11}</Project>
    144       <Name>HeuristicLab.Hive.Engine-3.2</Name>
    145142    </ProjectReference>
    146143    <ProjectReference Include="..\..\HeuristicLab.Modeling\3.2\HeuristicLab.Modeling-3.2.csproj">
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/HeuristicLabCedmaServerPlugin.cs

    r2057 r2058  
    3131  [Dependency(Dependency = "HeuristicLab.CEDMA.DB-3.3")]
    3232  [Dependency(Dependency = "HeuristicLab.Grid-3.2")]
     33  [Dependency(Dependency = "HeuristicLab.Grid.HiveBridge-3.2")]
    3334  [Dependency(Dependency = "HeuristicLab.Core-3.2")]
    3435  [Dependency(Dependency = "HeuristicLab.Data-3.2")]
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/Server.cs

    r2050 r2058  
    3030using HeuristicLab.CEDMA.DB;
    3131using System.ServiceModel.Description;
     32using HeuristicLab.Grid;
     33using HeuristicLab.Grid.HiveBridge;
    3234
    3335namespace HeuristicLab.CEDMA.Server {
     
    105107    internal void Connect(string serverUrl) {
    106108      dispatcher = new SimpleDispatcher(store);
     109      IGridServer gridServer = null;
    107110      if (serverUrl.Contains("ExecutionEngine")) {
    108         executer = new HiveExecuter(dispatcher, store, serverUrl);
     111        gridServer = new HiveGridServerWrapper(serverUrl);
    109112      } else {
    110113        // default is grid backend
    111         executer = new GridExecuter(dispatcher, store, serverUrl);
     114        gridServer = new GridServerProxy(serverUrl);
    112115      }
     116      executer = new GridExecuter(dispatcher, store, gridServer);
    113117      executer.Start();
    114118    }
Note: See TracChangeset for help on using the changeset viewer.