Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/20/11 14:16:53 (13 years ago)
Author:
cneumuel
Message:

#1233

  • renamed UptimeCalendar and Appointment to Downtime
  • added service methods to delete plugins and get plugin by hash
  • made reverted TransactionManager change, made it non-static and added interface
  • moved magic numbers to application settings
File:
1 edited

Legend:

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

    r6426 r6452  
    2323using System.Collections.Generic;
    2424using HeuristicLab.Common;
    25 using HeuristicLab.Hive;
    26 using HeuristicLab.PluginInfrastructure;
    2725
    2826namespace HeuristicLab.Clients.Hive.SlaveCore {
     
    6260    public void UpdateJob(Job job) {
    6361      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));
    9262    }
    9363    #endregion
Note: See TracChangeset for help on using the changeset viewer.