]> git.somenet.org - pub/jan/lsdc.git/blob - src/at/ac/tuwien/lsdc/types/SchedulerData.java
added some Files and comments and methods
[pub/jan/lsdc.git] / src / at / ac / tuwien / lsdc / types / SchedulerData.java
1 package at.ac.tuwien.lsdc.types;
2
3 public class SchedulerData {
4         
5         private long timestamp;
6         private long totalRAM;
7         private long totalCPU;
8         private long totalSize;
9         private long runningPMs;
10         private long runningVMs;
11         private long totalConsumption;
12         private int inSourced;
13         private int outSourced;
14         
15         public SchedulerData(long timestamp, long totalRAM, long totalCPU,
16                         long totalSize, long runningPMs, long runningVMs,
17                         long totalConsumption, int inSourced, int outSourced) {
18                 this.timestamp = timestamp;
19                 this.totalRAM = totalRAM;
20                 this.totalCPU = totalCPU;
21                 this.totalSize = totalSize;
22                 this.runningPMs = runningPMs;
23                 this.runningVMs = runningVMs;
24                 this.totalConsumption = totalConsumption;
25                 this.inSourced = inSourced;
26                 this.outSourced = outSourced;
27         }
28
29         @Override
30         public String toString() {
31                 return timestamp + ";" + totalRAM + ";" + totalCPU + ";"
32                                 + totalSize + ";" + runningPMs + ";"
33                                 + runningVMs + ";" + totalConsumption
34                                 + ";" + inSourced + ";" + outSourced;
35         }
36
37 }