Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/10 09:17:24 (14 years ago)
Author:
kgrading
Message:

added minor speedups and better transaction handling to the server (#828)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs

    r3578 r3931  
    3333using System.Threading;
    3434using System.ServiceModel;
     35using HeuristicLab.Tracing;
    3536
    3637namespace HeuristicLab.Hive.Server.ServerConsole {
     
    263264        IJobManager jobManager =
    264265          ServiceLocator.GetJobManager();
    265         jobs = jobManager.GetAllJobs();
    266 
    267         lvJobControl.Items.Clear();
     266        if (jobManager == null) {
     267          Logger.Error("Jobmanager is null");
     268          jobs = new ResponseList<JobDto>();
     269        } else {
     270          jobs = jobManager.GetAllJobs();
     271        }
     272
     273
     274        if (lvJobControl != null) lvJobControl.Items.Clear();
    268275
    269276        ListViewGroup lvJobCalculating = new ListViewGroup("calculating", HorizontalAlignment.Left);
     
    311318      }
    312319      catch (Exception ex) {
     320        Logger.Error(ex);
    313321        closeFormEvent(true, true);
    314322        this.Close();
     
    790798    }
    791799
    792     private int CapacityRam(int noCores, int freeCores) {
     800    private int CapacityRam(int noCores, int freeCores) {   
    793801      if (noCores > 0) {
    794802        int capacity = ((noCores - freeCores) / noCores) * 100;
Note: See TracChangeset for help on using the changeset viewer.