public class PerformanceInfo
extends java.lang.Object
PerformanceInfo is responsible for storing information about
single performance measurement. This information includes: | Modifier and Type | Field and Description |
|---|---|
private int |
generalCpuUsagePercent
CPU usage by all processes.
|
private long |
timestamp
Timestamp of the measurement.
|
private int |
vbsCpuUsagePercent
CPU usage by the VBS.
|
| Constructor and Description |
|---|
PerformanceInfo()
Constructs the object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getGeneralCpuUsagePercent()
Gets CPU usage by all processes.
|
long |
getTimestamp()
Gets timestamp of the measurement.
|
int |
getVbsCpuUsagePercent()
Gets CPU usage by the VBS.
|
void |
setGeneralCpuUsagePercent(int generalCpuUsagePercent)
Sets CPU usage by all processes.
|
void |
setTimestamp(long timestamp)
Sets timestamp of the measurement.
|
void |
setVbsCpuUsagePercent(int vbsCpuUsagePercent)
Sets CPU usage by the VBS.
|
private long timestamp
private int generalCpuUsagePercent
private int vbsCpuUsagePercent
public void setTimestamp(long timestamp)
timestamp - timestamp measured in milisecondspublic void setGeneralCpuUsagePercent(int generalCpuUsagePercent)
generalCpuUsagePercent - CPU usage in percentspublic void setVbsCpuUsagePercent(int vbsCpuUsagePercent)
vbsCpuUsagePercent - CPU usage in percentspublic long getTimestamp()
public int getGeneralCpuUsagePercent()
public int getVbsCpuUsagePercent()