Free cookie consent management tool by TermsFeed Policy Generator

Changeset 751 for trunk


Ignore:
Timestamp:
11/13/08 16:52:52 (16 years ago)
Author:
msteinbi
Message:

Creation of BusinessObjects (#357)

Location:
trunk/sources
Files:
10 added
5 edited

Legend:

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

    r746 r751  
    2424using System.Linq;
    2525using System.Text;
    26 
    27 namespace HeuristicLab.Hive.Server.BusinessObjects {
     26using System.Runtime.Serialization;
     27                                   
     28namespace HeuristicLab.Hive.Contracts.BusinessObjects {
    2829
    2930  public enum State { idle, calculating };
    3031
    31   public class Client {
     32  [DataContract]
     33  public class Client : Resource {
     34    [DataMember]
    3235    public Guid ClientId { get; set; }
     36    [DataMember]
    3337    public int NrOfCores { get; set; }
     38    [DataMember]
    3439    public int Memory { get; set; }
     40    [DataMember]
    3541    public DateTime Login { get; set; }
     42    [DataMember]
    3643    public State State { get; set; }
    37        
     44    [DataMember]
     45    public ClientConfig Config { get; set; }
    3846  }
    3947}
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/ClientConfig.cs

    r746 r751  
    2424using System.Linq;
    2525using System.Text;
     26using System.Runtime.Serialization;
    2627
    27 namespace HeuristicLab.Hive.Server.BusinessObjects {
     28namespace HeuristicLab.Hive.Contracts.BusinessObjects {
    2829
    29   class ClientConfig {
    30 
     30  [DataContract]
     31  public class ClientConfig {
     32    [DataMember]
     33    public String UpDownTimeCalendar { get; set; } // TODO define DataStructure
     34    [DataMember]
     35    public int HeartBeatIntervall { get; set; }
    3136  }
    3237}
  • trunk/sources/HeuristicLab.Hive.Contracts/HeuristicLab.Hive.Contracts.csproj

    r744 r751  
    3838      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    3939    </Reference>
     40    <Reference Include="System.Runtime.Serialization">
     41      <RequiredTargetFramework>3.0</RequiredTargetFramework>
     42    </Reference>
     43    <Reference Include="System.ServiceModel">
     44      <RequiredTargetFramework>3.0</RequiredTargetFramework>
     45    </Reference>
    4046    <Reference Include="System.Xml.Linq">
    4147      <RequiredTargetFramework>3.5</RequiredTargetFramework>
     
    4854  </ItemGroup>
    4955  <ItemGroup>
     56    <Compile Include="BusinessObjects\GrantedPermissions.cs" />
     57    <Compile Include="BusinessObjects\ClientGroup.cs" />
     58    <Compile Include="BusinessObjects\Job.cs" />
     59    <Compile Include="BusinessObjects\JobResult.cs" />
     60    <Compile Include="BusinessObjects\Permission.cs" />
     61    <Compile Include="BusinessObjects\PermissionOwner.cs" />
     62    <Compile Include="BusinessObjects\Resource.cs" />
     63    <Compile Include="BusinessObjects\UpTimeStatistics.cs" />
    5064    <Compile Include="BusinessObjects\Client.cs" />
    5165    <Compile Include="BusinessObjects\ClientConfig.cs" />
     66    <Compile Include="BusinessObjects\User.cs" />
     67    <Compile Include="BusinessObjects\UserGroup.cs" />
    5268    <Compile Include="HiveContractPlugin.cs" />
    5369    <Compile Include="Interfaces\IClientCommunicator.cs" />
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IClientCommunicator.cs

    r746 r751  
    2424using System.Linq;
    2525using System.Text;
    26 using HeuristicLab.Hive.Server.BusinessObjects;
     26using System.ServiceModel;
     27using HeuristicLab.Hive.Contracts.BusinessObjects;
    2728
    2829namespace HeuristicLab.Hive.Server.Interfaces {
     
    3031  /// This is the facade for the client communication
    3132  /// </summary>
     33  [ServiceContract]
    3234  public interface IClientCommunicator {
     35    [OperationContract]
    3336    Response Login(Client clientInfo);
    3437  }
  • trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs

    r741 r751  
    33using System.Linq;
    44using System.Text;
     5using HeuristicLab.Hive.Contracts.BusinessObjects;
    56using HeuristicLab.Hive.Server.Interfaces;
    67
     
    910    #region IClientCommunicator Members
    1011
    11     public Response Login(HeuristicLab.Hive.Server.BusinessObjects.Client clientInfo) {
     12    public Response Login(Client clientInfo) {
    1213      Response response = new Response();
    1314      response.Success = true;
Note: See TracChangeset for help on using the changeset viewer.