Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/24/11 14:30:55 (13 years ago)
Author:
ascheibe
Message:

#1233

  • added view for displaying jobs
  • improved slave ui
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs

    r6258 r6263  
    8484        if (ServiceEventLog != null) {
    8585          try {
    86             ServiceEventLog.WriteEntry(string.Format("Hive Slave threw exception: {0} with stack trace: {1}", ex.ToString(), ex.StackTrace));
     86            ServiceEventLog.WriteEntry(string.Format("Hive Slave threw exception: {0} with stack trace: {1}", ex.ToString(), ex.StackTrace), EventLogEntryType.Error);
    8787          }
    8888          catch (Exception) { }
     
    295295    private void DoAbortAll() {
    296296      lock (slaveJobs) {
    297         foreach (SlaveJob sj in slaveJobs.Values) {
     297        foreach (SlaveJob sj in new List<SlaveJob>(slaveJobs.Values)) {
    298298          if (!sj.Finished) {
    299299            sj.KillAppDomain();
     
    311311
    312312      lock (slaveJobs) {
    313         foreach (SlaveJob sj in slaveJobs.Values) {
     313        foreach (SlaveJob sj in new List<SlaveJob>(slaveJobs.Values)) {
    314314          if (!sj.Finished) {
    315315            sj.PauseJob();
     
    326326
    327327      lock (slaveJobs) {
    328         foreach (SlaveJob sj in slaveJobs.Values) {
     328        foreach (SlaveJob sj in new List<SlaveJob>(slaveJobs.Values)) {
    329329          if (!sj.Finished) {
    330330            sj.StopJob();
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/ServiceContracts/ISlaveCommunication.cs

    r5826 r6263  
    2828
    2929    [OperationContract]
    30     bool Subscribe();
     30    StatusCommons Subscribe();
    3131
    3232    [OperationContract]
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/SlaveCommunicationService.cs

    r5826 r6263  
    3030    private static List<ISlaveCommunicationCallbacks> subscribers = new List<ISlaveCommunicationCallbacks>();
    3131
    32     public bool Subscribe() {
     32    public StatusCommons Subscribe() {
    3333      try {
    3434        ISlaveCommunicationCallbacks callback = OperationContext.Current.GetCallbackChannel<ISlaveCommunicationCallbacks>();
     
    3636          subscribers.Add(callback);
    3737        }
    38         return true;
     38        return ConfigManager.Instance.GetStatusForClientConsole();
    3939      }
    4040      catch {
    41         return false;
     41        return null;
    4242      }
    4343    }
Note: See TracChangeset for help on using the changeset viewer.