Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/18/10 17:23:09 (14 years ago)
Author:
cneumuel
Message:

some small refactorings (#1159)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades/SlaveFacade.cs

    r4253 r4254  
    5555    }
    5656
    57     public ResponseHB ProcessHeartBeat(HeartBeatData hbData) {
     57    public ResponseHeartBeat ProcessHeartBeat(HeartBeatData hbData) {
    5858      using (contextFactory.GetContext()) {
    5959        return slaveCommunicator.ProcessHeartBeat(hbData);
     
    6161    }
    6262
    63     public ResponseJob SendJob(Guid clientId) {
     63    public ResponseObject<JobDto> GetJob(Guid clientId) {
    6464      using (contextFactory.GetContext()) {
    65         return slaveCommunicator.SendJob(clientId);
     65        return slaveCommunicator.GetJob(clientId);
    6666      }
    6767    }
     
    8585    }
    8686
    87     public ResponsePlugin SendPlugins(List<HivePluginInfoDto> pluginList) {
     87    public ResponseList<CachedHivePluginInfoDto> SendPlugins(List<HivePluginInfoDto> pluginList) {
    8888      return slaveCommunicator.SendPlugins(pluginList);     
    8989    }
     
    118118        MultiStream stream = new MultiStream();
    119119
    120         ResponseJob job = null;
     120        ResponseObject<JobDto> job = null;
    121121
    122         job = ServiceLocator.GetSlaveCommunicator().SendJob(clientId);
     122        job = ServiceLocator.GetSlaveCommunicator().GetJob(clientId);
    123123
    124124        //first send response
    125         stream.AddStream(new StreamedObject<ResponseJob>(job));
     125        stream.AddStream(new StreamedObject<ResponseObject<JobDto>>(job));
    126126
    127127        IJobManager jobManager = ServiceLocator.GetJobManager();
     
    130130        //second stream the job binary data
    131131        MemoryStream memoryStream = new MemoryStream();
    132         if (job.Job != null)
    133           stream.AddStream(new MemoryStream(internalJobManager.GetSerializedJobDataById(job.Job.Id)));
     132        if (job.Obj != null)
     133          stream.AddStream(new MemoryStream(internalJobManager.GetSerializedJobDataById(job.Obj.Id)));
    134134
    135135        OperationContext clientContext = OperationContext.Current;
     
    145145
    146146    public Stream SendStreamedPlugins(List<HivePluginInfoDto> pluginList) {
    147       return new StreamedObject<ResponsePlugin>(this.SendPlugins(pluginList));
     147      return new StreamedObject<ResponseList<CachedHivePluginInfoDto>>(this.SendPlugins(pluginList));
    148148    }
    149149
Note: See TracChangeset for help on using the changeset viewer.