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)

Location:
branches/3.2/sources/HeuristicLab.Hive.Server.Console/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/sources/HeuristicLab.Hive.Server.Console/3.2/HeuristicLab.Hive.Server.Console-3.2.csproj

    r3022 r3931  
    217217      <Name>HeuristicLab.PluginInfrastructure</Name>
    218218    </ProjectReference>
     219    <ProjectReference Include="..\..\HeuristicLab.Tracing\3.2\HeuristicLab.Tracing-3.2.csproj">
     220      <Project>{EE2034D9-6E27-48A1-B855-42D45F69A4FC}</Project>
     221      <Name>HeuristicLab.Tracing-3.2</Name>
     222    </ProjectReference>
    219223  </ItemGroup>
    220224  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  • 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.