Changeset 993
- Timestamp:
- 12/15/08 19:13:28 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 18 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/HeuristicLab.Hive.Client.Communication.csproj
r932 r993 54 54 <RequiredTargetFramework>3.5</RequiredTargetFramework> 55 55 </Reference> 56 <Reference Include="System.Runtime.Serialization"> 57 <RequiredTargetFramework>3.0</RequiredTargetFramework> 58 </Reference> 56 59 <Reference Include="System.ServiceModel"> 57 60 <RequiredTargetFramework>3.0</RequiredTargetFramework> … … 69 72 <Compile Include="CommunicationsPlugin.cs" /> 70 73 <Compile Include="Properties\AssemblyInfo.cs" /> 71 <Compile Include="ServerProxy.cs" /> 74 <Compile Include="Service References\ServerService\Reference.cs"> 75 <AutoGen>True</AutoGen> 76 <DesignTime>True</DesignTime> 77 <DependentUpon>Reference.svcmap</DependentUpon> 78 </Compile> 72 79 <Compile Include="WcfService.cs" /> 73 80 </ItemGroup> 74 81 <ItemGroup> 82 <None Include="app.config" /> 75 83 <None Include="HeuristicLab.snk" /> 76 84 <None Include="Properties\AssemblyInfo.frame" /> 85 <None Include="Service References\ServerService\HeuristicLab.Hive.Contracts.BusinessObjects.xsd" /> 86 <None Include="Service References\ServerService\HeuristicLab.Hive.Contracts.xsd" /> 87 <None Include="Service References\ServerService\service.wsdl" /> 88 <None Include="Service References\ServerService\service.xsd" /> 89 <None Include="Service References\ServerService\service1.xsd" /> 90 <None Include="Service References\ServerService\System.xsd" /> 77 91 </ItemGroup> 78 92 <ItemGroup> … … 94 108 </ProjectReference> 95 109 </ItemGroup> 110 <ItemGroup> 111 <WCFMetadata Include="Service References\" /> 112 </ItemGroup> 113 <ItemGroup> 114 <WCFMetadataStorage Include="Service References\ServerService\" /> 115 </ItemGroup> 116 <ItemGroup> 117 <None Include="Service References\ServerService\configuration91.svcinfo" /> 118 </ItemGroup> 119 <ItemGroup> 120 <None Include="Service References\ServerService\configuration.svcinfo" /> 121 </ItemGroup> 122 <ItemGroup> 123 <None Include="Properties\DataSources\HeuristicLab.Hive.Contracts.Response.datasource" /> 124 <None Include="Properties\DataSources\HeuristicLab.Hive.Contracts.ResponseHB.datasource" /> 125 <None Include="Properties\DataSources\HeuristicLab.Hive.Contracts.ResponseJob.datasource" /> 126 <None Include="Properties\DataSources\HeuristicLab.Hive.Contracts.ResponseResultReceived.datasource" /> 127 <None Include="Service References\ServerService\Reference.svcmap"> 128 <Generator>WCF Proxy Generator</Generator> 129 <LastGenOutput>Reference.cs</LastGenOutput> 130 </None> 131 </ItemGroup> 96 132 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 97 133 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
trunk/sources/HeuristicLab.Hive.Client.Communication/WcfService.cs
r949 r993 8 8 using HeuristicLab.Hive.Contracts.BusinessObjects; 9 9 using HeuristicLab.Hive.Client.Common; 10 using HeuristicLab.Hive.Client.Communication.ServerService; 10 11 11 12 namespace HeuristicLab.Hive.Client.Communication { … … 29 30 public event EventHandler ServerChanged; 30 31 31 p rivateClientCommunicatorClient proxy = null;32 public ClientCommunicatorClient proxy = null; 32 33 33 34 private WcfService() { … … 51 52 ConnectionRestored(this, new EventArgs()); 52 53 ConnState = NetworkEnum.WcfConnState.Connected; 53 ConnectedSince = DateTime.Now; 54 ConnectedSince = DateTime.Now; 54 55 } 55 56 catch (Exception ex) { … … 59 60 60 61 public void Connect(String serverIP, int serverPort) { 61 if(this.ServerIP != serverIP || this.ServerPort != ServerPort)62 ServerChanged(this, new EventArgs());62 String oldIp = this.ServerIP; 63 int oldPort = this.ServerPort; 63 64 this.ServerIP = serverIP; 64 65 this.ServerPort = serverPort; 65 66 Connect(); 67 if (oldIp != serverIP || oldPort != ServerPort) 68 ServerChanged(this, new EventArgs()); 66 69 } 67 70 … … 107 110 public void SendJobResultAsync(JobResult result, bool finished) { 108 111 if (ConnState == NetworkEnum.WcfConnState.Connected) 109 proxy.SendJobResult (result, finished);112 proxy.SendJobResultAsync(result, finished); 110 113 } 111 114 private void proxy_SendJobResultCompleted(object sender, SendJobResultCompletedEventArgs e) { -
trunk/sources/HeuristicLab.Hive.Client.Core/ConfigurationManager/ConfigManager.cs
r968 r993 67 67 68 68 public ClientInfo GetClientInfo() { 69 hardwareInfo.Login = WcfService.Instance.ConnectedSince; 69 70 return hardwareInfo; 70 71 } -
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r960 r993 41 41 using HeuristicLab.Hive.Client.Core.ClientConsoleService; 42 42 using HeuristicLab.Hive.Client.Core.ConfigurationManager; 43 using HeuristicLab.Hive.Client.Communication.ServerService; 43 44 44 45 … … 51 52 Dictionary<long, AppDomain> appDomains = new Dictionary<long, AppDomain>(); 52 53 54 private ClientCommunicatorClient ccc; 53 55 private WcfService wcfService; 54 56 … … 66 68 wcfService.Connect(cc.IPAdress, cc.Port); 67 69 } 70 68 71 wcfService.LoginCompleted += new EventHandler<LoginCompletedEventArgs>(wcfService_LoginCompleted); 69 72 wcfService.PullJobCompleted += new EventHandler<PullJobCompletedEventArgs>(wcfService_PullJobCompleted); 70 wcfService.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(wcfService_SendJobResultCompleted); 73 wcfService.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(wcfService_SendJobResultCompleted); 71 74 wcfService.ConnectionRestored += new EventHandler(wcfService_ConnectionRestored); 72 75 wcfService.ServerChanged += new EventHandler(wcfService_ServerChanged); 73 74 wcfService.LoginAsync(ConfigManager.Instance.GetClientInfo()); 75 76 76 77 Heartbeat beat = new Heartbeat { Interval = 10000 }; 77 78 beat.StartHeartbeat(); … … 120 121 121 122 JobResult jobResult = new JobResult { JobId = jId, Result = sJob, Client = ConfigManager.Instance.GetClientInfo() }; 122 wcfService.SendJobResultAsync(jobResult, true); 123 wcfService.SendJobResultAsync(jobResult, true); 123 124 } 124 125 … … 180 181 appDomains = new Dictionary<long, AppDomain>(); 181 182 engines = new Dictionary<long, Executor>(); 183 wcfService.LoginAsync(ConfigManager.Instance.GetClientInfo()); 182 184 } 183 185 -
trunk/sources/HeuristicLab.Hive.Client.Core/Heartbeat.cs
r960 r993 31 31 using HeuristicLab.Hive.Contracts; 32 32 using HeuristicLab.Hive.Client.Core.ConfigurationManager; 33 using HeuristicLab.Hive.Client.Communication.ServerService; 33 34 //using BO = HeuristicLab.Hive.Contracts.BusinessObjects; 34 35 -
trunk/sources/HeuristicLab.Hive.Server/HiveServerApplication.cs
r977 r993 128 128 129 129 Uri uriTcp = 130 new Uri("net.tcp:// " + addresses[index] + ":" + port + "/HiveServer/");130 new Uri("net.tcp://10.0.0.64:9000/HiveServer/"); 131 131 132 132 ServiceHost clientCommunicator =
Note: See TracChangeset
for help on using the changeset viewer.