public class LoadMeasureAvgOSHI
extends java.lang.Object
LoadMeasureOSHI
.LoadMeasureOSHI
Constructor and Description |
---|
LoadMeasureAvgOSHI(java.lang.Integer avgCounter)
Instantiates this class.
|
Modifier and Type | Method and Description |
---|---|
double |
getCPU_Usage()
Gets the CPU usage.
|
long |
getFreeMemory()
Gets the free memory.
|
long |
getFreeMemorySwap()
Gets the free memory swap.
|
long |
getMhz()
Gets the mhz.
|
java.lang.String |
getProcessorName()
Gets the processorName.
|
int |
getTotalCpu()
Gets the total cpu.
|
long |
getTotalMemory()
Gets the total memory.
|
long |
getTotalMemorySwap()
Gets the total memory swap.
|
long |
getUsedMemory()
Gets the use memory.
|
long |
getUseMemorySwap()
Gets the use memory swap.
|
void |
put(LoadMeasureOSHI currentLoadMeasure)
Used to put a new load measurement into this class.
|
void |
setCPU_Usage(double cpuUsage)
Sets the CPU usage.
|
void |
setFreeMemory(long freeMemory)
Sets the free memory.
|
void |
setFreeMemorySwap(long freeMemorySwap)
Sets the free memory swap.
|
void |
setMhz(long mhz)
Sets the mhz.
|
void |
setProcessorName(java.lang.String processorName)
Sets the processorName.
|
void |
setTotalCpu(int totalCpu)
Sets the total cpu.
|
void |
setTotalMemory(long totalMemory)
Sets the total memory.
|
void |
setTotalMemorySwap(long totalMemorySwap)
Sets the total memory swap.
|
void |
setUsedMemory(long usedMemory)
Sets the use memory.
|
void |
setUseMemorySwap(long useMemorySwap)
Sets the use memory swap.
|
public LoadMeasureAvgOSHI(java.lang.Integer avgCounter)
avgCounter
- the maximum length of List for building the averagepublic void put(LoadMeasureOSHI currentLoadMeasure)
currentLoadMeasure
- the current load measuredpublic void setCPU_Usage(double cpuUsage)
cpuUsage
- the new CPU usagepublic double getCPU_Usage()
public void setTotalMemory(long totalMemory)
totalMemory
- the totalMemory to setpublic long getTotalMemory()
public void setFreeMemory(long freeMemory)
freeMemory
- the freeMemory to setpublic long getFreeMemory()
public void setUsedMemory(long usedMemory)
usedMemory
- the usedMemory to setpublic long getUsedMemory()
public long getTotalMemorySwap()
public void setTotalMemorySwap(long totalMemorySwap)
totalMemorySwap
- the totalMemorySwap to setpublic long getFreeMemorySwap()
public void setFreeMemorySwap(long freeMemorySwap)
freeMemorySwap
- the freeMemorySwap to setpublic long getUseMemorySwap()
public void setUseMemorySwap(long useMemorySwap)
useMemorySwap
- the useMemorySwap to setpublic java.lang.String getProcessorName()
public void setProcessorName(java.lang.String processorName)
processorName
- the processorName to setpublic long getMhz()
public void setMhz(long mhz)
mhz
- the mhz to setpublic void setTotalCpu(int totalCpu)
totalCpu
- the totalCpu to setpublic int getTotalCpu()