Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/27/09 14:04:47 (16 years ago)
Author:
svonolfe
Message:

Refactored DAL (now using GUIDs as IDs instead of longs) (#527)

File:
1 edited

Legend:

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

    r1379 r1449  
    5555
    5656      if (Settings.Default.Guid == Guid.Empty) {
    57         hardwareInfo.ClientId = Guid.NewGuid();
    58         Settings.Default.Guid = hardwareInfo.ClientId;
     57        hardwareInfo.Id = Guid.NewGuid();
     58        Settings.Default.Guid = hardwareInfo.Id;
    5959        Settings.Default.Save();
    6060      } else
    61         hardwareInfo.ClientId = Settings.Default.Guid;
     61        hardwareInfo.Id = Settings.Default.Guid;
    6262     
    6363      hardwareInfo.NrOfCores = Environment.ProcessorCount;
     
    102102      //Todo: Locking
    103103      StatusCommons st = new StatusCommons();
    104       st.ClientGuid = hardwareInfo.ClientId;
     104      st.ClientGuid = hardwareInfo.Id;
    105105     
    106106      st.Status = WcfService.Instance.ConnState;
     
    111111      st.JobsFetched = ClientStatusInfo.JobsFetched;     
    112112
    113       Dictionary<long, Executor> engines = Core.GetExecutionEngines();
     113      Dictionary<Guid, Executor> engines = Core.GetExecutionEngines();
    114114      st.Jobs = new List<JobStatus>();
    115115
    116116      lock (engines) {
    117         foreach (KeyValuePair<long, Executor> kvp in engines) {
     117        foreach (KeyValuePair<Guid, Executor> kvp in engines) {
    118118          Executor e = kvp.Value;
    119119          st.Jobs.Add(new JobStatus { JobId = e.JobId, Progress = e.Progress, Since = e.CreationTime });
     
    123123    }
    124124
    125     public Dictionary<long, double> GetProgressOfAllJobs() {
    126       Dictionary<long,double> prog = new Dictionary<long,double>();
    127       Dictionary<long, Executor> engines = Core.GetExecutionEngines();
     125    public Dictionary<Guid, double> GetProgressOfAllJobs() {
     126      Dictionary<Guid, double> prog = new Dictionary<Guid, double>();
     127      Dictionary<Guid, Executor> engines = Core.GetExecutionEngines();
    128128      lock (engines) {
    129         foreach (KeyValuePair<long, Executor> kvp in engines) {
     129        foreach (KeyValuePair<Guid, Executor> kvp in engines) {
    130130          Executor e = kvp.Value;
    131131          prog[e.JobId] = e.Progress;
Note: See TracChangeset for help on using the changeset viewer.