|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.jasmine.vmm.api.ResourceUsage
public class ResourceUsage
A snapshot of performance metrics for a virtual machine
Nested Class Summary | |
---|---|
static class |
ResourceUsage.DiskStats
Disk I/O performance metrics of a device |
static class |
ResourceUsage.NetworkStats
Network I/O performance metrics of a NIC |
Constructor Summary | |
---|---|
ResourceUsage()
Constructs a new ResourceUsage |
Method Summary | |
---|---|
static ResourceUsage |
from(javax.management.openmbean.CompositeData cd)
Constructs a new ResourceUsage from a CompositeDate object |
float |
getCpuLoad()
Returns the CPU load of the VM as the fraction of of the physical CPU capacity |
java.util.List<ResourceUsage.DiskStats> |
getDiskStats()
Returns the the disk I/O performance statistics of all disk devices attached to the VM |
long |
getMemoryUsedKBytes()
Returns the memory occupation of the VM in kilobytes |
java.util.List<ResourceUsage.NetworkStats> |
getNetworkStats()
Returns the network performance statistics of all NICs attached to the VM |
java.util.Date |
getSamplingTime()
Returns the time at which the ResourceUsage was sampled |
void |
setCpuLoad(float cpuLoad)
Sets the CPU load of the VM as the fraction of of the physical CPU capacity |
void |
setDiskStats(java.util.List<ResourceUsage.DiskStats> diskStats)
Sets the disk I/O performance statistics of all disk devices attached to the VM |
void |
setMemoryUsedKBytes(long memoryUsedKBytes)
Sets the memory occupation of the VM in kilobytes |
void |
setNetworkStats(java.util.List<ResourceUsage.NetworkStats> networkStats)
Sets the network performance statistics of all NICs attached to the VM |
void |
setSamplingTime(java.util.Date samplingTime)
Sets the time at which the ResourceUsage is sampled |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceUsage()
Method Detail |
---|
public static ResourceUsage from(javax.management.openmbean.CompositeData cd)
cd
- composite data representing a ResourceUsage
public java.util.Date getSamplingTime()
public float getCpuLoad()
public long getMemoryUsedKBytes()
public java.util.List<ResourceUsage.NetworkStats> getNetworkStats()
public java.util.List<ResourceUsage.DiskStats> getDiskStats()
public void setSamplingTime(java.util.Date samplingTime)
samplingTime
- time at which the ResourceUsage is sampledpublic void setCpuLoad(float cpuLoad)
cpuLoad
- the CPU loadpublic void setMemoryUsedKBytes(long memoryUsedKBytes)
memoryUsedKBytes
- memory occupation of the VM in kilobytespublic void setNetworkStats(java.util.List<ResourceUsage.NetworkStats> networkStats)
networkStats
- list of NetworkStats representing the network
performance of all NICs attached to the VMpublic void setDiskStats(java.util.List<ResourceUsage.DiskStats> diskStats)
diskStats
- list of DiskStats representing the disk I/O performance
of all disk devices attached to the VMpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |