Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/09/11 01:47:51 (13 years ago)
Author:
ascheibe
Message:

#1233 server can now control the slave heartbeat interval

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.3/Convert.cs

    r6768 r6893  
    217217        OperatingSystem = source.OperatingSystem,
    218218        LastHeartbeat = source.LastHeartbeat,
    219         CpuUtilization = source.CpuUtilization
     219        CpuUtilization = source.CpuUtilization,
     220        HbInterval = source.HbInterval
    220221      };
    221222    }
     
    241242        target.LastHeartbeat = source.LastHeartbeat;
    242243        target.CpuUtilization = source.CpuUtilization;
     244        target.HbInterval = source.HbInterval;
    243245      }
    244246    }
     
    248250    public static DT.SlaveGroup ToDto(DB.SlaveGroup source) {
    249251      if (source == null) return null;
    250       return new DT.SlaveGroup { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId };
     252      return new DT.SlaveGroup { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId, HbInterval = source.HbInterval };
    251253    }
    252254    public static DB.SlaveGroup ToEntity(DT.SlaveGroup source) {
     
    257259    public static void ToEntity(DT.SlaveGroup source, DB.SlaveGroup target) {
    258260      if ((source != null) && (target != null)) {
    259         target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId;
     261        target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId; target.HbInterval = source.HbInterval;
    260262      }
    261263    }
     
    265267    public static DT.Resource ToDto(DB.Resource source) {
    266268      if (source == null) return null;
    267       return new DT.Resource { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId };
     269      return new DT.Resource { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId, HbInterval = source.HbInterval };
    268270    }
    269271    public static DB.Resource ToEntity(DT.Resource source) {
     
    274276    public static void ToEntity(DT.Resource source, DB.Resource target) {
    275277      if ((source != null) && (target != null)) {
    276         target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId;
     278        target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId; target.HbInterval = source.HbInterval;
    277279      }
    278280    }
Note: See TracChangeset for help on using the changeset viewer.