Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/25/10 19:57:44 (14 years ago)
Author:
kgrading
Message:

improved the DAL further, changed minor details for the presentation (#830)

Location:
trunk/sources/HeuristicLab.Hive.Client.Core/3.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/ConfigurationManager/UptimeManager.cs

    r3203 r3220  
    3333        return instance;
    3434      }
     35    }
     36
     37    public UptimeManager() {
     38      RestoreFromHDD();
    3539    }
    3640
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/Core.cs

    r3203 r3220  
    311311    /// <param name="e"></param>
    312312    void wcfService_SendJobCompleted(object sender, SendJobCompletedEventArgs e) {
    313       Logging.Instance.Info(this.ToString(), "Received new job with id " + e.Result.Job.Id);
    314       if (e.Result.StatusMessage != ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT) {       
     313      if (e.Result.StatusMessage != ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT) {
     314        Logging.Instance.Info(this.ToString(), "Received new job with id " + e.Result.Job.Id);     
    315315        bool sandboxed = false;
    316316        List<byte[]> files = new List<byte[]>();
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/JobStorage/JobStorageManager.cs

    r2846 r3220  
    6363            Logging.Instance.Error("JobStorageManager", "Job not on hdd but on list - deleting job from list", e);
    6464            storedJobsList.Remove(storedJobsList[index - 1]);
     65            StoreJobList();
    6566          }
    6667     
     
    8283           
    8384      XmlSerializer serializer = new XmlSerializer(typeof(List<JobStorageInfo>));
     85      FileStream stream = null;
    8486      if(File.Exists(Path.Combine(path ,"list.xml"))) {
    8587        try {
    86           FileStream stream = new FileStream(Path.Combine(path, "list.xml"), FileMode.Open);
     88          stream = new FileStream(Path.Combine(path, "list.xml"), FileMode.Open);
    8789          XmlTextReader reader = new XmlTextReader(stream);
    8890          storedJobsList = (List<JobStorageInfo>)serializer.Deserialize(reader);
     
    9193        catch (Exception e) {
    9294          Logging.Instance.Error("JobStorageManager", "Exception while loading the Stored Job List", e);
     95        } finally {
     96          if(stream != null)
     97            stream.Dispose();
    9398        }
    9499      } else {
Note: See TracChangeset for help on using the changeset viewer.