source: trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApi/DataTransfer/Status.cs @ 12435

Last change on this file since 12435 was 12435, checked in by dglaser, 7 years ago

#2394: Improved PluginManager and updated hive status monitor.

File size: 2.5 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System.Collections.Generic;
23
24namespace HeuristicLab.Services.WebApp.Status.WebApi.DataTransfer {
25
26  public class CoreStatus {
27    public int TotalCores { get; set; }
28    public int FreeCores { get; set; } // temporary quickfix for old chart data
29    public int ActiveCores { get; set; }
30    public int CalculatingCores { get; set; }
31  }
32
33  public class CpuUtilizationStatus {
34    public double TotalCpuUtilization { get; set; }
35    public double ActiveCpuUtilization { get; set; }
36    public double CalculatingCpuUtilization { get; set; }
37  }
38
39  public class MemoryStatus {
40    public int TotalMemory { get; set; }
41    public int FreeMemory { get; set; } // temporary quickfix for old chart data
42    public int ActiveMemory { get; set; }
43    public int UsedMemory { get; set; }
44  }
45
46  public class TaskStatus {
47    public User User { get; set; }
48    public int CalculatingTasks { get; set; }
49    public int WaitingTasks { get; set; }
50  }
51
52  public class SlaveStatus {
53    public Slave Slave { get; set; }
54    public double CpuUtilization { get; set; }
55    public int Cores { get; set; }
56    public int FreeCores { get; set; }
57    public int Memory { get; set; }
58    public int FreeMemory { get; set; }
59    public bool IsAllowedToCalculate { get; set; }
60    public string State { get; set; }
61  }
62
63  public class Status {
64    public CoreStatus CoreStatus { get; set; }
65    public CpuUtilizationStatus CpuUtilizationStatus { get; set; }
66    public MemoryStatus MemoryStatus { get; set; }
67    public IEnumerable<TaskStatus> TasksStatus { get; set; }
68    public IEnumerable<SlaveStatus> SlavesStatus { get; set; }
69    public long Timestamp { get; set; }
70  }
71
72}
Note: See TracBrowser for help on using the repository browser.