Changeset 734 for trunk/sources
- Timestamp:
- 11/11/08 17:50:43 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Common/HeuristicLab.Hive.Client.Common.csproj
r729 r734 67 67 <Compile Include="CommonPlugin.cs" /> 68 68 <Compile Include="Logging.cs" /> 69 <Compile Include="MessageContainer.cs" /> 70 <Compile Include="MessageQueue.cs" /> 69 71 <Compile Include="Properties\AssemblyInfo.cs" /> 70 72 </ItemGroup> -
trunk/sources/HeuristicLab.Hive.Client.Core/CoreApplication.cs
r733 r734 14 14 public override void Run() { 15 15 16 Logging.getInstance().Info(this.Name, "Info Message");17 Logging.getInstance().Error(this.Name, "Error Message");18 Logging.getInstance().Error(this.Name, "Exception Message", new Exception("Exception"));16 //Logging.getInstance().Info(this.Name, "Info Message"); 17 //Logging.getInstance().Error(this.Name, "Error Message"); 18 //Logging.getInstance().Error(this.Name, "Exception Message", new Exception("Exception")); 19 19 20 20 Heartbeat beat = new Heartbeat(); 21 21 beat.Interval = 1000; 22 22 beat.StartHeartbeat(); 23 DoRubbish(); 24 Console.WriteLine("done"); 25 Thread.Sleep(99999); 26 } 23 MessageQueue queue = MessageQueue.GetInstance(); 24 25 while (true) { 26 MessageContainer container = queue.GetMessage(); 27 Console.WriteLine(container.Message.ToString()); 28 } 27 29 28 private void DoRubbish() { 29 for (int w = 0; w < 20000000; w++) 30 for (int x = 0; x < 20000000; x++) 31 for (int y = 0; y < 20000000; y++) { 32 } 33 30 34 31 } 35 32 } -
trunk/sources/HeuristicLab.Hive.Client.Core/Heartbeat.cs
r733 r734 4 4 using System.Text; 5 5 using System.Timers; 6 using HeuristicLab.Hive.Client.Common; 6 7 7 8 namespace HeuristicLab.Hive.Client.Core { … … 24 25 heartbeatTimer.AutoReset = true; 25 26 heartbeatTimer.Elapsed += new ElapsedEventHandler(heartbeatTimer_Elapsed); 26 heartbeatTimer.Start(); 27 heartbeatTimer.Start(); 27 28 } 28 29 29 30 void heartbeatTimer_Elapsed(object sender, ElapsedEventArgs e) { 30 31 Console.WriteLine("tick"); 32 MessageQueue.GetInstance().AddMessage(MessageQueue.MessageType.FetchJob); 31 33 } 32 34
Note: See TracChangeset
for help on using the changeset viewer.