Changeset 403 for trunk/sources/HeuristicLab.CEDMA.Operators
- Timestamp:
- 07/29/08 18:05:18 (17 years ago)
- 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 63 63 </ItemGroup> 64 64 <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>69 65 <ProjectReference Include="..\HeuristicLab.CEDMA.DB.Interfaces\HeuristicLab.CEDMA.DB.Interfaces.csproj"> 70 66 <Project>{4F9BB789-D561-436B-B226-2BF44B7D0804}</Project> -
TabularUnified trunk/sources/HeuristicLab.CEDMA.Operators/HeuristicLabCedmaOperatorsPlugin.cs ¶
r352 r403 29 29 [PluginFile(Filename = "HeuristicLab.CEDMA.Operators.dll", Filetype = PluginFileType.Assembly)] 30 30 [Dependency(Dependency = "HeuristicLab.CEDMA.DB.Interfaces")] 31 [Dependency(Dependency = "HeuristicLab.Core")] 32 [Dependency(Dependency = "HeuristicLab.Data")] 31 33 public class HeuristicLabCedmaOperatorsPlugin : PluginBase { 32 34 } -
TabularUnified trunk/sources/HeuristicLab.CEDMA.Operators/OnGridProcessor.cs ¶
r398 r403 28 28 using HeuristicLab.CEDMA.DB.Interfaces; 29 29 using System.ServiceModel; 30 using HeuristicLab.CEDMA.Core;31 30 32 31 namespace HeuristicLab.CEDMA.Operators { … … 48 47 long agentId = scope.GetVariableValue<IntData>("AgentId", true).Data; 49 48 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 56 49 NetTcpBinding binding = new NetTcpBinding(); 57 50 binding.MaxReceivedMessageSize = 10000000; // 10Mbytes … … 61 54 using(ChannelFactory<IDatabase> factory = new ChannelFactory<IDatabase>(binding)) { 62 55 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)); 64 57 database.UpdateAgent(id, ProcessStatus.Waiting); 65 58 } -
TabularUnified trunk/sources/HeuristicLab.CEDMA.Operators/ScopeResultWriter.cs ¶
r394 r403 28 28 using HeuristicLab.CEDMA.DB.Interfaces; 29 29 using System.ServiceModel; 30 using HeuristicLab.CEDMA.Core;31 30 32 31 namespace HeuristicLab.CEDMA.Operators { … … 45 44 string serverUrl = scope.GetVariableValue<StringData>("CedmaServerUri", true).Data; 46 45 long agentId = scope.GetVariableValue<IntData>("AgentId", true).Data; 47 Result result = new Result();48 result.Item = scope;49 46 50 47 NetTcpBinding binding = new NetTcpBinding(); … … 55 52 using(ChannelFactory<IDatabase> factory = new ChannelFactory<IDatabase>(binding)) { 56 53 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)); 58 55 } 59 56 return null;
Note: See TracChangeset
for help on using the changeset viewer.