Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2107


Ignore:
Timestamp:
06/25/09 16:47:43 (15 years ago)
Author:
kgrading
Message:

various updates (#467)

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/WcfService.cs

    r2102 r2107  
    252252   
    253253    #endregion
    254 
     254                                                 
    255255    /// <summary>
    256256    /// Methods for sending the periodically Heartbeat
     
    268268        SendHeartBeatCompleted(sender, e);
    269269      else {
    270         Logging.Instance.Error(this.ToString(), "Error: " + e.Result.StatusMessage);
     270        try {
     271          Logging.Instance.Error(this.ToString(), "Error: " + e.Result.StatusMessage);
     272        } catch (Exception ex) {
     273          Logging.Instance.Error(this.ToString(), "Error: ", ex);         
     274        }
    271275        HandleNetworkError(e.Error);
    272276      }
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/ConfigurationManager/ConfigManager.cs

    r1755 r2107  
    2929using HeuristicLab.Hive.Client.Communication;
    3030using HeuristicLab.Hive.Client.Core.Properties;
     31using HeuristicLab.Hive.Contracts;
    3132
    3233namespace HeuristicLab.Hive.Client.Core.ConfigurationManager {
     
    129130        foreach (KeyValuePair<Guid, Executor> kvp in engines) {
    130131          Executor e = kvp.Value;
    131           prog[e.JobId] = e.Progress;
     132          if (!e.Running && e.CurrentMessage == MessageContainer.MessageType.NoMessage)
     133            prog[e.JobId] = e.Progress;
    132134        }
    133135      }
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/JobStorage/JobStorageManager.cs

    r2025 r2107  
    4646        if (WcfService.Instance.ConnState == NetworkEnum.WcfConnState.Loggedin && (storedJobsList[index-1].ServerIP == WcfService.Instance.ServerIP && storedJobsList[index-1].ServerPort == WcfService.Instance.ServerPort)) {
    4747          String filename = storedJobsList[index-1].ServerIP + "." + storedJobsList[index-1].ServerPort + "." + storedJobsList[index-1].JobID.ToString();         
    48           Logging.Instance.Info("JobStorrageManager", "Sending stored job " + storedJobsList[index - 1].JobID + " to the server");
     48          Logging.Instance.Info("JobStorageManager", "Sending stored job " + storedJobsList[index - 1].JobID + " to the server");
    4949          try {
    5050            byte[] job = File.ReadAllBytes(path + filename + ".dat");
     
    5454                Logging.Instance.Error("JobStorageManager", "sending of job failed: " + res.StatusMessage);
    5555              else
    56                 Logging.Instance.Info("JobStorrageManager", "Sending of job " + storedJobsList[index - 1].JobID + " done");
     56                Logging.Instance.Info("JobStorageManager", "Sending of job " + storedJobsList[index - 1].JobID + " done");
    5757            }
    5858            ClientStatusInfo.JobsProcessed++;
     
    6161          }
    6262          catch (Exception e) {
    63             Logging.Instance.Error("JobStorrageManager", "Job not on hdd but on list - deleting job from list", e);
     63            Logging.Instance.Error("JobStorageManager", "Job not on hdd but on list - deleting job from list", e);
    6464            storedJobsList.Remove(storedJobsList[index - 1]);
    6565          }
     
    7777
    7878    static JobStorageManager() {
    79       Logging.Instance.Info("JobStorrageManager", "Restoring Joblist from Harddisk");
     79      Logging.Instance.Info("JobStorageManager", "Restoring Joblist from Harddisk");
    8080      if (!Directory.Exists(path))
    8181        Directory.CreateDirectory(path);
     
    8787          XmlTextReader reader = new XmlTextReader(stream);
    8888          storedJobsList = (List<JobStorageInfo>)serializer.Deserialize(reader);
    89           Logging.Instance.Info("JobStorrageManager", "Loaded " + storedJobsList.Count + " Elements");
     89          Logging.Instance.Info("JobStorageManager", "Loaded " + storedJobsList.Count + " Elements");
    9090        }
    9191        catch (Exception e) {
    92           Logging.Instance.Error("JobStorrageManager", "Exception while loading the Stored Job List", e);
     92          Logging.Instance.Error("JobStorageManager", "Exception while loading the Stored Job List", e);
    9393        }
    9494      } else {
    95         Logging.Instance.Info("JobStorrageManager", "no stored jobs on harddisk, starting new list");
     95        Logging.Instance.Info("JobStorageManager", "no stored jobs on harddisk, starting new list");
    9696        storedJobsList = new List<JobStorageInfo>();
    9797      }
  • trunk/sources/HeuristicLab.Hive.Client.ExecutionEngine/3.2/Executor.cs

    r1990 r2107  
    3838    public MessageContainer.MessageType CurrentMessage { get; set; }
    3939    public MessageQueue Queue { get; set; }
     40   
    4041    public bool Running {
    4142      get {
     
    4344      }
    4445    }
     46
    4547    public double Progress {
    4648      get {
Note: See TracChangeset for help on using the changeset viewer.