Changeset 4254 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades
- Timestamp:
- 08/18/10 17:23:09 (14 years ago)
- 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 55 55 } 56 56 57 public ResponseH BProcessHeartBeat(HeartBeatData hbData) {57 public ResponseHeartBeat ProcessHeartBeat(HeartBeatData hbData) { 58 58 using (contextFactory.GetContext()) { 59 59 return slaveCommunicator.ProcessHeartBeat(hbData); … … 61 61 } 62 62 63 public Response Job SendJob(Guid clientId) {63 public ResponseObject<JobDto> GetJob(Guid clientId) { 64 64 using (contextFactory.GetContext()) { 65 return slaveCommunicator. SendJob(clientId);65 return slaveCommunicator.GetJob(clientId); 66 66 } 67 67 } … … 85 85 } 86 86 87 public Response PluginSendPlugins(List<HivePluginInfoDto> pluginList) {87 public ResponseList<CachedHivePluginInfoDto> SendPlugins(List<HivePluginInfoDto> pluginList) { 88 88 return slaveCommunicator.SendPlugins(pluginList); 89 89 } … … 118 118 MultiStream stream = new MultiStream(); 119 119 120 Response Jobjob = null;120 ResponseObject<JobDto> job = null; 121 121 122 job = ServiceLocator.GetSlaveCommunicator(). SendJob(clientId);122 job = ServiceLocator.GetSlaveCommunicator().GetJob(clientId); 123 123 124 124 //first send response 125 stream.AddStream(new StreamedObject<Response Job>(job));125 stream.AddStream(new StreamedObject<ResponseObject<JobDto>>(job)); 126 126 127 127 IJobManager jobManager = ServiceLocator.GetJobManager(); … … 130 130 //second stream the job binary data 131 131 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))); 134 134 135 135 OperationContext clientContext = OperationContext.Current; … … 145 145 146 146 public Stream SendStreamedPlugins(List<HivePluginInfoDto> pluginList) { 147 return new StreamedObject<Response Plugin>(this.SendPlugins(pluginList));147 return new StreamedObject<ResponseList<CachedHivePluginInfoDto>>(this.SendPlugins(pluginList)); 148 148 } 149 149
Note: See TracChangeset
for help on using the changeset viewer.