- Timestamp:
- 06/20/11 14:16:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/WcfService.cs
r6426 r6452 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Common; 25 using HeuristicLab.Hive;26 using HeuristicLab.PluginInfrastructure;27 25 28 26 namespace HeuristicLab.Clients.Hive.SlaveCore { … … 62 60 public void UpdateJob(Job job) { 63 61 CallHiveService(s => s.UpdateJob(job)); 64 }65 66 public Guid AddChildJob(Guid parentJobId, Job job, IJob jobDataObject) {67 return CallHiveService(s => {68 JobData jobData = new JobData();69 IEnumerable<Type> types;70 jobData.Data = PersistenceUtil.Serialize(jobDataObject, out types);71 var plugins = new List<IPluginDescription>();72 PluginUtil.CollectDeclaringPlugins(plugins, types);73 job.PluginsNeededIds = PluginUtil.GetPluginDependencies(s, new List<Plugin>(), new List<Plugin>(), plugins);74 return s.AddChildJob(parentJobId, job, jobData);75 });76 }77 78 public IEnumerable<JobData> GetChildJobs(Guid? parentJobId) {79 return CallHiveService(service => {80 IEnumerable<LightweightJob> msg = service.GetLightweightChildJobs(parentJobId, false, false);81 82 List<JobData> jobs = new List<JobData>();83 foreach (LightweightJob ljob in msg)84 jobs.Add(service.GetJobData(ljob.Id));85 86 return jobs;87 });88 }89 90 public void DeleteChildJobs(Guid jobId) {91 CallHiveService(s => s.DeleteChildJobs(jobId));92 62 } 93 63 #endregion
Note: See TracChangeset
for help on using the changeset viewer.