Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/11 18:33:03 (13 years ago)
Author:
ascheibe
Message:

#1233

  • code cleanups for slave review
  • added switch between privileged and unprivileged sandbox
  • removed childjob management because it's not used
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Manager/ConfigManager.cs

    r6357 r6371  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    3939
    4040    /// <summary>
    41     /// if the Sleeping is true, the Slave won't accept any new jobs
     41    /// if Asleep is true, the Slave won't accept any new jobs
    4242    /// </summary>
    4343    public bool Asleep { get; set; }
    44 
    45     //public Core Core { get; set; }
    4644    private JobManager jobManager;
    4745    private Slave slave;
     
    111109    public Dictionary<Guid, TimeSpan> GetExecutionTimeOfAllJobs() {
    112110      Dictionary<Guid, TimeSpan> prog = new Dictionary<Guid, TimeSpan>();
    113 
    114       //lock (slaveJobs) {
    115       //  foreach (KeyValuePair<Guid, SlaveJob> kvp in slaveJobs) {
    116       //    Executor e = kvp.Value.JobExecutor;
    117       //    if (e != null && !kvp.Value.Finished) {
    118       //      //don't include jobs in hb's which are currently serializing
    119       //      if (e.SendHeartbeatForExecutor) {
    120       //        prog[e.JobId] = e.ExecutionTime;
    121       //      }
    122       //    }
    123       //  }
    124       //}
    125111      prog = jobManager.GetExecutionTimes();
    126 
    127112      return prog;
    128113    }
     
    159144
    160145    /// <summary>
    161     /// Generate a guid based on mac address of the first found nic (yes, mac addresses are not unique...).
     146    /// Generate a guid based on mac address of the first found nic (yes, mac addresses are not unique...)
     147    /// and the machine name.
    162148    /// Format:
    163149    ///
     
    169155    /// The mac address is saved in the last 48 bits of the Data 4 segment
    170156    /// of the guid (first 2 bytes of Data 4 are reserved).
    171     /// D1 contains the name of the machine.
     157    /// D1 contains the hash of the machinename.
    172158    /// </summary>   
    173159    private static Guid GetUniqueMachineIdFromMac() {
Note: See TracChangeset for help on using the changeset viewer.