- Timestamp:
- 11/12/08 15:06:16 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Common/Logging.cs
r735 r739 46 46 } 47 47 48 private Logging() { 49 eventLogger = new EventLog("Hive Client"); 48 private Logging() { 49 eventLogger = new EventLog("Hive Client"); 50 50 } 51 51 -
trunk/sources/HeuristicLab.Hive.Client.Common/MessageContainer.cs
r735 r739 31 31 /// </summary> 32 32 public class MessageContainer { 33 public MessageQueue.MessageType Message { get; set; } 33 34 public enum MessageType { FetchJob, AbortJob, RequestSnapshot, FinishedJob }; 35 36 public MessageType Message { get; set; } 34 37 public int JobId { get; set; } 35 38 36 public MessageContainer(Message Queue.MessageType message) {39 public MessageContainer(MessageType message) { 37 40 Message = message; 38 41 JobId = 0; 39 42 } 40 public MessageContainer(Message Queue.MessageType message, int jobId) {43 public MessageContainer(MessageType message, int jobId) { 41 44 Message = message; 42 45 JobId = jobId; -
trunk/sources/HeuristicLab.Hive.Client.Common/MessageQueue.cs
r734 r739 33 33 34 34 private static MessageQueue instance = null; 35 36 public enum MessageType { FetchJob, AbortJob, RequestSnapshot, FinishedJob }; 35 37 36 private Queue<MessageContainer> queue = null; 38 37 private Semaphore semaphore = null; … … 88 87 /// </summary> 89 88 /// <param name="message">the Message</param> 90 public void AddMessage(Message Type message) {89 public void AddMessage(MessageContainer.MessageType message) { 91 90 lock (this) { 92 91 queue.Enqueue(new MessageContainer(message)); -
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r735 r739 29 29 public class Core { 30 30 public void Start() { 31 //Logging.getInstance().Info(this.Name, "Info Message");32 //Logging.getInstance().Error(this.Name, "Error Message");33 //Logging.getInstance().Error(this.Name, "Exception Message", new Exception("Exception"));31 Logging.getInstance().Info(this.ToString(), "Info Message"); 32 Logging.getInstance().Error(this.ToString(), "Error Message"); 33 Logging.getInstance().Error(this.ToString(), "Exception Message", new Exception("Exception")); 34 34 35 35 Heartbeat beat = new Heartbeat(); -
trunk/sources/HeuristicLab.Hive.Client.Core/Heartbeat.cs
r735 r739 61 61 void heartbeatTimer_Elapsed(object sender, ElapsedEventArgs e) { 62 62 Console.WriteLine("tick"); 63 MessageQueue.GetInstance().AddMessage(Message Queue.MessageType.FetchJob);63 MessageQueue.GetInstance().AddMessage(MessageContainer.MessageType.FetchJob); 64 64 } 65 65
Note: See TracChangeset
for help on using the changeset viewer.