Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/19/10 12:41:05 (14 years ago)
Author:
cneumuel
Message:

consolidated Response objects to use only StatusMessage with enums instead of strings.
removed Success property from Response. success is now represented by StatusMessage alone. (#1159)

File:
1 edited

Legend:

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

    r4254 r4263  
    3535using HeuristicLab.Hive.Server.LINQDataAccess;
    3636using HeuristicLab.Hive.Server.DataAccess;
     37using HeuristicLab.Hive.Contracts.ResponseObjects;
    3738
    3839namespace HeuristicLab.Hive.Server.Core {
     
    8586    }
    8687
    87     public ResponseList<CachedHivePluginInfoDto> SendPlugins(List<HivePluginInfoDto> pluginList) {
    88       return slaveCommunicator.SendPlugins(pluginList);     
     88    public ResponseList<CachedHivePluginInfoDto> GetPlugins(List<HivePluginInfoDto> pluginList) {
     89      return slaveCommunicator.GetPlugins(pluginList);     
    8990    }
    9091
     
    9495      }
    9596    }
    96 
    9797
    9898    public ResponseCalendar GetCalendar(Guid clientId) {
     
    114114    /// Do not use automatic transactions here
    115115    /// </summary>
    116     public Stream SendStreamedJob(Guid clientId) {
     116    public Stream GetStreamedJob(Guid clientId) {
    117117      using (contextFactory.GetContext(false)) {
    118118        MultiStream stream = new MultiStream();
     
    125125        stream.AddStream(new StreamedObject<ResponseObject<JobDto>>(job));
    126126
    127         IJobManager jobManager = ServiceLocator.GetJobManager();
    128         IInternalJobManager internalJobManager = (IInternalJobManager)jobManager;
     127        IInternalJobManager internalJobManager = (IInternalJobManager)ServiceLocator.GetJobManager();
    129128
    130129        //second stream the job binary data
    131130        MemoryStream memoryStream = new MemoryStream();
    132         if (job.Obj != null)
     131        if (job.Obj != null) {
    133132          stream.AddStream(new MemoryStream(internalJobManager.GetSerializedJobDataById(job.Obj.Id)));
     133        }
    134134
    135135        OperationContext clientContext = OperationContext.Current;
     
    144144    }
    145145
    146     public Stream SendStreamedPlugins(List<HivePluginInfoDto> pluginList) {
    147       return new StreamedObject<ResponseList<CachedHivePluginInfoDto>>(this.SendPlugins(pluginList));
     146    public Stream GetStreamedPlugins(List<HivePluginInfoDto> pluginList) {
     147      return new StreamedObject<ResponseList<CachedHivePluginInfoDto>>(this.GetPlugins(pluginList));
    148148    }
    149149
Note: See TracChangeset for help on using the changeset viewer.