Changeset 793 for trunk/sources
- Timestamp:
- 11/20/08 16:27:31 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Common/HeuristicLab.Hive.Client.Common.csproj
r789 r793 69 69 <Compile Include="JobBase.cs" /> 70 70 <Compile Include="Logging.cs" /> 71 <Compile Include="MessageContainer.cs" />72 71 <Compile Include="MessageQueue.cs" /> 73 72 <Compile Include="Properties\AssemblyInfo.cs" /> … … 79 78 <Project>{F43B59AB-2B8C-4570-BC1E-15592086517C}</Project> 80 79 <Name>HeuristicLab.Core</Name> 80 </ProjectReference> 81 <ProjectReference Include="..\HeuristicLab.Hive.Contracts\HeuristicLab.Hive.Contracts.csproj"> 82 <Project>{134F93D7-E7C8-4ECD-9923-7F63259A60D8}</Project> 83 <Name>HeuristicLab.Hive.Contracts</Name> 81 84 </ProjectReference> 82 85 <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> -
trunk/sources/HeuristicLab.Hive.Client.Common/MessageQueue.cs
r739 r793 24 24 using System.Text; 25 25 using System.Threading; 26 using HeuristicLab.Hive.Contracts; 26 27 27 28 namespace HeuristicLab.Hive.Client.Common { -
trunk/sources/HeuristicLab.Hive.Client.Communication/ServiceLocator.cs
r790 r793 13 13 proxy = new ClientCommunicatorClient( 14 14 new NetTcpBinding(), 15 new EndpointAddress("net.tcp://10.20.53. 2:9000/HiveServer/ClientCommunicator")15 new EndpointAddress("net.tcp://10.20.53.1:9000/HiveServer/ClientCommunicator") 16 16 ); 17 17 } -
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r791 r793 33 33 using System.Security; 34 34 using HeuristicLab.Hive.Client.Communication; 35 using BO = HeuristicLab.Hive.Contracts.BusinessObjects; 35 using HeuristicLab.Hive.Contracts.BusinessObjects; 36 using HeuristicLab.Hive.Contracts; 36 37 37 38 … … 64 65 beat.StartHeartbeat(); 65 66 66 BO.ClientInfo clientInfo = new BO.ClientInfo { ClientId = Guid.NewGuid() };67 ClientInfo clientInfo = new ClientInfo { ClientId = Guid.NewGuid() }; 67 68 68 69 ClientCommunicatorClient clientCommunicator = ServiceLocator.GetClientCommunicator(); -
trunk/sources/HeuristicLab.Hive.Client.Core/Heartbeat.cs
r790 r793 29 29 using System.Diagnostics; 30 30 using HeuristicLab.Hive.Contracts.BusinessObjects; 31 using HeuristicLab.Hive.Contracts; 31 32 //using BO = HeuristicLab.Hive.Contracts.BusinessObjects; 32 33 … … 47 48 } 48 49 50 private ClientCommunicatorClient clientCommunicator; 51 49 52 /// <summary> 50 53 /// Starts the Heartbeat signal. … … 55 58 heartbeatTimer.AutoReset = true; 56 59 heartbeatTimer.Elapsed += new ElapsedEventHandler(heartbeatTimer_Elapsed); 57 heartbeatTimer.Start(); 60 clientCommunicator = ServiceLocator.GetClientCommunicator(); 61 clientCommunicator.SendHeartBeatCompleted += new EventHandler<SendHeartBeatCompletedEventArgs>(ClientCommunicator_SendHeartBeatCompleted); 62 heartbeatTimer.Start(); 58 63 } 59 64 … … 65 70 void heartbeatTimer_Elapsed(object sender, ElapsedEventArgs e) { 66 71 Console.WriteLine("tick"); 67 ClientCommunicatorClient clientCommunicator = ServiceLocator.GetClientCommunicator();68 72 HeartBeatData heartBeatData = new HeartBeatData { ClientId = Guid.NewGuid(), 69 73 freeCores = 4, 70 74 freeMemory = 1000, 71 75 jobProgress = 1}; 72 73 clientCommunicator.SendHeartBeatCompleted += new EventHandler<SendHeartBeatCompletedEventArgs>(ClientCommunicator_SendHeartBeatCompleted);74 76 clientCommunicator.SendHeartBeatAsync(heartBeatData); 75 76 //MessageQueue.GetInstance().AddMessage(MessageContainer.MessageType.FetchJob);77 78 77 } 79 78 80 79 void ClientCommunicator_SendHeartBeatCompleted(object sender, SendHeartBeatCompletedEventArgs e) { 81 System.Diagnostics.Debug.WriteLine("Heartbeat received"); 80 System.Diagnostics.Debug.WriteLine("Heartbeat received! " + e.Result.ActionRequest.ToString()); 81 foreach (MessageContainer mc in e.Result.ActionRequest) { 82 MessageQueue.GetInstance().AddMessage(mc); 83 84 } 82 85 } 83 84 86 } 85 87 } -
trunk/sources/HeuristicLab.Hive.Client.ExecutionEngine/Executor.cs
r779 r793 28 28 using System.Xml.Serialization; 29 29 using System.IO; 30 using HeuristicLab.Hive.Contracts; 30 31 31 32 namespace HeuristicLab.Hive.Client.ExecutionEngine { -
trunk/sources/HeuristicLab.Hive.Client.ExecutionEngine/HeuristicLab.Hive.Client.ExecutionEngine.csproj
r768 r793 61 61 <Name>HeuristicLab.Hive.Client.Common</Name> 62 62 </ProjectReference> 63 <ProjectReference Include="..\HeuristicLab.Hive.Contracts\HeuristicLab.Hive.Contracts.csproj"> 64 <Project>{134F93D7-E7C8-4ECD-9923-7F63259A60D8}</Project> 65 <Name>HeuristicLab.Hive.Contracts</Name> 66 </ProjectReference> 63 67 <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> 64 68 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
Note: See TracChangeset
for help on using the changeset viewer.