Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/26/08 14:59:57 (16 years ago)
Author:
msteinbi
Message:

First dummy implementation of the external interfaces for the Console Manager (#395)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/ClientManager.cs

    r800 r820  
    88namespace HeuristicLab.Hive.Server.Core {
    99  class ClientManager: IClientManager {
     10
     11    List<ClientInfo> clients;
     12    List<ClientGroup> clientGroups;
     13
     14    public ClientManager() {
     15      clients = new List<ClientInfo>();
     16      clientGroups = new List<ClientGroup>();
     17
     18      clients.Add(new ClientInfo { ClientId=Guid.NewGuid(), CpuSpeedPerCore=2500, Memory=4096, ResourceId=1, State=State.idle });
     19      clients.Add(new ClientInfo { ClientId=Guid.NewGuid(), CpuSpeedPerCore=2100, Memory=2048, ResourceId=2, State=State.idle });
     20      clients.Add(new ClientInfo { ClientId=Guid.NewGuid(), CpuSpeedPerCore=3400, Memory=4096, ResourceId=3, State=State.calculating });
     21
     22      clientGroups.Add(new ClientGroup { ResourceId = 4, Name = "SuperGroup", ClientGroupId = 1 });
     23    }
     24
    1025    #region IClientManager Members
    1126
    1227    public List<ClientInfo> GetAllClients() {
    13       return new List<ClientInfo>();
     28      return clients;
    1429    }
    1530
    1631    public List<ClientGroup> GetAllClientGroups() {
    17       return new List<ClientGroup>();
     32      return clientGroups;
    1833    }
    1934
Note: See TracChangeset for help on using the changeset viewer.