Changeset 5106 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer
- Timestamp:
- 12/14/10 16:52:55 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/HiveExperiment.cs
r4796 r5106 31 31 public Guid UserId { get; set; } 32 32 [DataMember] 33 public Guid? RootJobId { get; set; } 33 public Guid RootJobId { get; set; } 34 [DataMember] 35 public DateTime DateCreated { get; set; } 34 36 35 37 public HiveExperiment() { } … … 37 39 this.RootJobId = original.RootJobId; 38 40 this.UserId = original.UserId; 41 this.DateCreated = original.DateCreated; 39 42 } 40 43 public override IDeepCloneable Clone(Cloner cloner) { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Job.cs
r4905 r5106 39 39 public int MemoryNeeded { get; set; } 40 40 [DataMember] 41 public Guid? ProjectId { get; set; }42 [DataMember]43 41 public List<Guid> PluginsNeededIds { get; set; } 44 42 … … 49 47 this.CoresNeeded = original.CoresNeeded; 50 48 this.MemoryNeeded = original.MemoryNeeded; 51 this.ProjectId = original.ProjectId;52 49 this.PluginsNeededIds = new List<Guid>(original.PluginsNeededIds); 53 50 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/JobData.cs
r4796 r5106 33 33 [DataMember] 34 34 public byte[] Data { get; set; } 35 [DataMember] 36 public DateTime LastUpdate { get; set; } 35 37 36 38 public JobData() { } 37 39 protected JobData(JobData original, Cloner cloner) : base(original, cloner) { 38 40 if (original.Data != null) this.Data = new byte[original.Data.Length]; Array.Copy(original.Data, this.Data, original.Data.Length); 41 this.LastUpdate = original.LastUpdate; 39 42 } 40 43 public override IDeepCloneable Clone(Cloner cloner) { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/LightweightJob.cs
r4796 r5106 37 37 public String Exception { get; set; } 38 38 [DataMember] 39 public DateTime ?DateCreated { get; set; }39 public DateTime DateCreated { get; set; } 40 40 [DataMember] 41 41 public DateTime? DateCalculated { get; set; } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Resource.cs
r4796 r5106 28 28 [Serializable] 29 29 public class Resource : NamedHiveItem { 30 [DataMember] 31 public Guid? ParentResourceId { get; set; } 30 32 31 33 public Resource() { } 32 protected Resource(Resource original, Cloner cloner) : base(original, cloner) { } 34 protected Resource(Resource original, Cloner cloner) : base(original, cloner) { 35 this.ParentResourceId = original.ParentResourceId; 36 } 33 37 public override IDeepCloneable Clone(Cloner cloner) { 34 38 return new Resource(this, cloner); -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Slave.cs
r4796 r5106 33 33 public int? FreeCores { get; set; } 34 34 [DataMember] 35 public int? CpuSpeed { get; set; } 35 public int? CpuSpeed { get; set; } // MHz 36 36 [DataMember] 37 public int? Memory { get; set; } 37 public int? Memory { get; set; } // MB 38 38 [DataMember] 39 public int? FreeMemory { get; set; } 39 public int? FreeMemory { get; set; } // MB 40 40 [DataMember] 41 41 public SlaveState SlaveState { get; set; } 42 [DataMember]43 public CalendarState CalendarSyncState { get; set; }44 [DataMember]45 public Guid? SlaveConfigId { get; set; }46 42 [DataMember] 47 43 public bool IsAllowedToCalculate { get; set; } … … 57 53 this.FreeMemory = original.FreeMemory; 58 54 this.SlaveState = original.SlaveState; 59 this.CalendarSyncState = original.CalendarSyncState;60 this.SlaveConfigId = original.SlaveConfigId;61 55 this.IsAllowedToCalculate = original.IsAllowedToCalculate; 62 56 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/SlaveGroup.cs
r4796 r5106 29 29 [DataContract] 30 30 public class SlaveGroup : Resource { 31 [DataMember] 32 public List<Guid> ChildResourcesIds { get; set; } 33 [DataMember] 34 public List<Guid> ParentResourcesIds { get; set; } 35 36 public SlaveGroup() { 37 ChildResourcesIds = new List<Guid>(); 38 } 39 protected SlaveGroup(SlaveGroup original, Cloner cloner) : base(original, cloner) { 40 this.ChildResourcesIds = new List<Guid>(original.ChildResourcesIds); 41 this.ParentResourcesIds = new List<Guid>(original.ParentResourcesIds); 42 } 31 public SlaveGroup() { } 32 protected SlaveGroup(SlaveGroup original, Cloner cloner) : base(original, cloner) { } 43 33 public override IDeepCloneable Clone(Cloner cloner) { 44 34 return new SlaveGroup(this, cloner);
Note: See TracChangeset
for help on using the changeset viewer.