Free cookie consent management tool by TermsFeed Policy Generator

Changeset 780 for trunk/sources


Ignore:
Timestamp:
11/19/08 16:08:49 (16 years ago)
Author:
msteinbi
Message:

New methods defined in IClientCommunicator (new response classes and HeartBeatData class) (#351)

Location:
trunk/sources
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Job.cs

    r751 r780  
    3131  public class Job {
    3232    [DataMember]
     33    public long JobId { get; set; }
     34    [DataMember]
    3335    public State State { get; set; }
    3436    [DataMember]
  • trunk/sources/HeuristicLab.Hive.Contracts/HeuristicLab.Hive.Contracts.csproj

    r751 r780  
    5656    <Compile Include="BusinessObjects\GrantedPermissions.cs" />
    5757    <Compile Include="BusinessObjects\ClientGroup.cs" />
     58    <Compile Include="BusinessObjects\HeartBeatData.cs" />
    5859    <Compile Include="BusinessObjects\Job.cs" />
    5960    <Compile Include="BusinessObjects\JobResult.cs" />
     
    6667    <Compile Include="BusinessObjects\User.cs" />
    6768    <Compile Include="BusinessObjects\UserGroup.cs" />
     69    <Compile Include="ResponseJob.cs" />
    6870    <Compile Include="HiveContractPlugin.cs" />
    6971    <Compile Include="Interfaces\IClientCommunicator.cs" />
    7072    <Compile Include="Properties\AssemblyInfo.cs" />
    7173    <Compile Include="Response.cs" />
     74    <Compile Include="ResponseHB.cs" />
    7275  </ItemGroup>
    7376  <ItemGroup>
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IClientCommunicator.cs

    r751 r780  
    2727using HeuristicLab.Hive.Contracts.BusinessObjects;
    2828
    29 namespace HeuristicLab.Hive.Server.Interfaces {
     29namespace HeuristicLab.Hive.Contracts.Interfaces {
    3030  /// <summary>
    3131  /// This is the facade for the client communication
     
    3535    [OperationContract]
    3636    Response Login(Client clientInfo);
     37    [OperationContract]
     38    ResponseHB SendHeartBeat(HeartBeatData hbData);
     39    [OperationContract]
     40    ResponseJob PullJob(Guid clientId);
     41    [OperationContract]
     42    Response SendJobResult(JobResult Result, bool finished);
     43    [OperationContract]
     44    Response Logout(Guid clientId);
    3745  }
    3846}
  • trunk/sources/HeuristicLab.Hive.Contracts/Response.cs

    r744 r780  
    2424using System.Linq;
    2525using System.Text;
     26using System.Runtime.Serialization;
    2627
    27 namespace HeuristicLab.Hive.Server {
     28namespace HeuristicLab.Hive.Contracts {
    2829  /// <summary>
    2930  /// Server response class
    3031  /// </summary>
     32  [DataContract]
    3133  public class Response {
     34    [DataMember]
    3235    public bool Success { get; set; }
    33 
     36    [DataMember]
    3437    public string StatusMessage { get; set; }
    3538  }
  • trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs

    r751 r780  
    44using System.Text;
    55using HeuristicLab.Hive.Contracts.BusinessObjects;
    6 using HeuristicLab.Hive.Server.Interfaces;
     6using HeuristicLab.Hive.Contracts.Interfaces;
     7using HeuristicLab.Hive.Contracts;
    78
    89namespace HeuristicLab.Hive.Server.Core {
    9   class ClientCommunicator: IClientCommunicator {
     10  /// <summary>
     11  /// The ClientCommunicator manages the whole communication with the client
     12  /// </summary>
     13  public class ClientCommunicator: IClientCommunicator {
    1014    #region IClientCommunicator Members
    1115
     
    1822    }
    1923
     24    public ResponseHB SendHeartBeat(HeartBeatData hbData) {
     25      throw new NotImplementedException();
     26    }
     27
     28    public ResponseJob PullJob(Guid clientId) {
     29      throw new NotImplementedException();
     30    }
     31
     32    public Response SendJobResult(JobResult Result, bool finished) {
     33      throw new NotImplementedException();
     34    }
     35
     36    public Response Logout(Guid clientId) {
     37      throw new NotImplementedException();
     38    }
     39
    2040    #endregion
    2141  }
  • trunk/sources/HeuristicLab.Hive.Server/HiveServerApplication.cs

    r753 r780  
    2929using System.Net;
    3030using HeuristicLab.Hive.Contracts;
    31 using HeuristicLab.Hive.Server.Interfaces;
     31using HeuristicLab.Hive.Contracts.Interfaces;
    3232
    3333namespace HeuristicLab.Hive.Server {
Note: See TracChangeset for help on using the changeset viewer.