Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/29/08 18:05:18 (17 years ago)
Author:
gkronber
Message:
  • fixed ticket #201 (Fix plugin dependencies for CEDMA plugins)
  • deleted classes DbPersistenceManager because the common code was moved to the PersistenceManager in HeuristicLab.Core.
Location:
trunk/sources/HeuristicLab.CEDMA.Operators
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/sources/HeuristicLab.CEDMA.Operators/HeuristicLab.CEDMA.Operators.csproj

    r394 r403  
    6363  </ItemGroup>
    6464  <ItemGroup>
    65     <ProjectReference Include="..\HeuristicLab.CEDMA.Core\HeuristicLab.CEDMA.Core.csproj">
    66       <Project>{C27DDF6C-84DF-45EF-B82F-57A28DD51166}</Project>
    67       <Name>HeuristicLab.CEDMA.Core</Name>
    68     </ProjectReference>
    6965    <ProjectReference Include="..\HeuristicLab.CEDMA.DB.Interfaces\HeuristicLab.CEDMA.DB.Interfaces.csproj">
    7066      <Project>{4F9BB789-D561-436B-B226-2BF44B7D0804}</Project>
  • TabularUnified trunk/sources/HeuristicLab.CEDMA.Operators/HeuristicLabCedmaOperatorsPlugin.cs

    r352 r403  
    2929  [PluginFile(Filename = "HeuristicLab.CEDMA.Operators.dll", Filetype = PluginFileType.Assembly)]
    3030  [Dependency(Dependency = "HeuristicLab.CEDMA.DB.Interfaces")]
     31  [Dependency(Dependency = "HeuristicLab.Core")]
     32  [Dependency(Dependency = "HeuristicLab.Data")]
    3133  public class HeuristicLabCedmaOperatorsPlugin : PluginBase {
    3234  }
  • TabularUnified trunk/sources/HeuristicLab.CEDMA.Operators/OnGridProcessor.cs

    r398 r403  
    2828using HeuristicLab.CEDMA.DB.Interfaces;
    2929using System.ServiceModel;
    30 using HeuristicLab.CEDMA.Core;
    3130
    3231namespace HeuristicLab.CEDMA.Operators {
     
    4847      long agentId = scope.GetVariableValue<IntData>("AgentId", true).Data;
    4948
    50       Agent agent = new Agent();
    51       foreach(IOperator op in operatorGraph.Operators) {
    52         agent.OperatorGraph.AddOperator(op);
    53       }
    54       agent.OperatorGraph.InitialOperator = operatorGraph.InitialOperator;
    55 
    5649      NetTcpBinding binding = new NetTcpBinding();
    5750      binding.MaxReceivedMessageSize = 10000000; // 10Mbytes
     
    6154      using(ChannelFactory<IDatabase> factory = new ChannelFactory<IDatabase>(binding)) {
    6255        IDatabase database = factory.CreateChannel(new EndpointAddress(serverUrl));
    63         long id = database.InsertAgent(agentId, null, DbPersistenceManager.Save(agent));
     56        long id = database.InsertAgent(agentId, null, PersistenceManager.SaveToGZip(operatorGraph));
    6457        database.UpdateAgent(id, ProcessStatus.Waiting);
    6558      }
  • TabularUnified trunk/sources/HeuristicLab.CEDMA.Operators/ScopeResultWriter.cs

    r394 r403  
    2828using HeuristicLab.CEDMA.DB.Interfaces;
    2929using System.ServiceModel;
    30 using HeuristicLab.CEDMA.Core;
    3130
    3231namespace HeuristicLab.CEDMA.Operators {
     
    4544      string serverUrl = scope.GetVariableValue<StringData>("CedmaServerUri", true).Data;
    4645      long agentId = scope.GetVariableValue<IntData>("AgentId", true).Data;
    47       Result result = new Result();
    48       result.Item = scope;
    4946
    5047      NetTcpBinding binding = new NetTcpBinding();
     
    5552      using(ChannelFactory<IDatabase> factory = new ChannelFactory<IDatabase>(binding)) {
    5653        IDatabase database = factory.CreateChannel(new EndpointAddress(serverUrl));
    57         database.InsertResult(agentId, scope.Name, "Scope", DbPersistenceManager.Save(result));
     54        database.InsertResult(agentId, scope.Name, "Scope", PersistenceManager.SaveToGZip(scope));
    5855      }
    5956      return null;
Note: See TracChangeset for help on using the changeset viewer.