Changeset 1085


Ignore:
Timestamp:
01/07/09 16:41:36 (12 years ago)
Author:
kgrading
Message:

extended messagetypes (#456)

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Core/ClientConsoleService/ClientConsoleCommunicator.cs

    r1083 r1085  
    66using HeuristicLab.Hive.Client.Core.ConfigurationManager;
    77using HeuristicLab.Hive.Client.Communication;
     8using HeuristicLab.Hive.Client.Common;
     9using HeuristicLab.Hive.Contracts;
    810
    911namespace HeuristicLab.Hive.Client.Core.ClientConsoleService {
     
    3537
    3638    public void ShutdownClient() {
    37       Core.ShutdownFlag = true;
     39      MessageQueue.GetInstance().AddMessage(MessageContainer.MessageType.Shutdown);
    3840    }
    3941
  • trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs

    r1083 r1085  
    117117          Thread finThread = new Thread(new ParameterizedThreadStart(GetFinishedJob));
    118118          finThread.Start(container.JobId);         
    119           break;     
     119          break;     
     120        case MessageContainer.MessageType.Shutdown:
     121          ShutdownFlag = true;
     122          break;
    120123      }
    121124    }
  • trunk/sources/HeuristicLab.Hive.Contracts/MessageContainer.cs

    r783 r1085  
    3333  public class MessageContainer {
    3434
    35     public enum MessageType { FetchJob, AbortJob, JobAborted, RequestSnapshot, FinishedJob, NoMessage, SnapshotReady };
     35    public enum MessageType { FetchJob, AbortJob, JobAborted, RequestSnapshot, FinishedJob, NoMessage, SnapshotReady, Shutdown };
    3636
    3737    public MessageType Message { get; set; }
Note: See TracChangeset for help on using the changeset viewer.