Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/11 14:11:11 (13 years ago)
Author:
ascheibe
Message:

#1233

  • added autostart for tray icon to installer
  • machine unique id now includes the machine name
  • core: check if job already exists on slave
  • already finished jobs now fail and are sent back
File:
1 edited

Legend:

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

    r5711 r5789  
    2929namespace HeuristicLab.Clients.Hive.SlaveCore {
    3030  /// <summary>
    31   /// accesses the Server and sends his data (uuid, uptimes, hardware config)
     31  /// accesses the server and sends his data (uuid, uptimes, hardware config)
    3232  /// </summary>
    3333  public class ConfigManager {
     
    6565    /// <returns>the ClientInfo object</returns>
    6666    public Slave GetClientInfo() {
    67       //TODO: how to display connectedsince in gui?
    68       //hardwareInfo.Login = WcfService.Instance.ConnectedSince;
    6967      return slave;
    7068    }
     
    7573    /// <returns></returns>
    7674    public StatusCommons GetStatusForClientConsole() {
    77       //Todo: Locking
    7875      StatusCommons st = new StatusCommons();
    7976      st.ClientGuid = slave.Id;
     
    143140
    144141    /// <summary>
    145     /// MegaBytes
     142    /// returns total physical memory of the machine in MB
    146143    /// </summary>
    147144    private static int? GetPhysicalMemory() {
     
    154151
    155152    /// <summary>
    156     /// Mhz
     153    /// returns CPU frequence of the machine in Mhz
    157154    /// </summary>
    158155    private static int? GetCpuSpeed() {
     
    189186                }
    190187
    191                 Guid guid = new Guid(0, 0, 0, b);
     188                // also get machine name and save it to the first 4 bytes               
     189                Guid guid = new Guid(Environment.MachineName.GetHashCode(), 0, 0, b);
    192190                return guid;
    193191              } else
     
    239237    }
    240238
     239    /// <summary>
     240    /// returns free memory of machine in MB
     241    /// </summary>   
    241242    public static int GetFreeMemory() {
    242243      int mb = 0;
Note: See TracChangeset for help on using the changeset viewer.