- Timestamp:
- 11/26/08 14:59:57 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/ClientManager.cs
r800 r820 8 8 namespace HeuristicLab.Hive.Server.Core { 9 9 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 10 25 #region IClientManager Members 11 26 12 27 public List<ClientInfo> GetAllClients() { 13 return new List<ClientInfo>();28 return clients; 14 29 } 15 30 16 31 public List<ClientGroup> GetAllClientGroups() { 17 return new List<ClientGroup>();32 return clientGroups; 18 33 } 19 34
Note: See TracChangeset
for help on using the changeset viewer.