public interface VMGuestLibInterface
open
method of the VMGuestLibHandle
class. Each interface instance is
bound to and backed by an underlying handle. Handles can be closed
explicitly using the close
method.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the handle associated with this interface instance and free any
related resources.
|
long |
getCpuLimitMHz()
Retrieves the maximum processing power in MHz available to the virtual
machine.
|
long |
getCpuReservationMHz()
Retrieves the minimum processing power in MHz available to the virtual
machine.
|
long |
getCpuShares()
Retrieves the number of CPU shares allocated to the virtual machine.
|
long |
getCpuUsedMs()
Retrieves the number of milliseconds during which the virtual machine
has been using the CPU.
|
java.math.BigInteger |
getElapsedMs()
Retrieves the number of milliseconds that have passed in real time since
the virtual machine started running on the current host system.
|
long |
getHostProcessorSpeed()
Retrieves the speed of the host system's physical CPU in MHz.
|
long |
getMemActiveMB()
Retrieves the estimated amount of memory the virtual machine is actively
using.
|
long |
getMemBalloonedMB()
Retrieves the amount of memory that has been reclaimed from this virtual
machine via the VMware Memory Balloon mechanism.
|
long |
getMemLimitMB()
Retrieves the maximum amount of memory that is available to the virtual
machine.
|
long |
getMemMappedMB()
Retrieves the mapped memory size of this virtual machine.
|
long |
getMemOverheadMB()
Retrieves the amount of overhead memory associated with this virtual
machine consumed on the host system.
|
long |
getMemReservationMB()
Retrieves the minimum amount of memory that is available to the virtual
machine.
|
long |
getMemSharedMB()
Retrieves the amount of physical memory associated with this virtual
machine that is copy-on-write (COW) shared on the host.
|
long |
getMemSharedSavedMB()
Retrieves the estimated amount of physical memory on the host saved
from copy-on-write (COW) shared guest physical memory.
|
long |
getMemShares()
Retrieves the number of memory shares allocated to the virtual machine.
|
long |
getMemSwappedMB()
Retrieves the amount of memory associated with this virtual machine that
has been swapped by the host system.
|
long |
getMemUsedMB()
Retrieves the estimated amount of physical host memory currently
consumed for this virtual machine's physical memory.
|
java.lang.String |
getResourcePoolPath()
Retrieves a string representation of the path to this virtual machine in
the resource pool namespace of the host system.
|
long |
getSessionId()
Retrieves the ID for the current session after invoking the updateInfo
method.
|
void |
updateInfo()
Refresh the virtual machine information associated with the handle for
this interface instance.
|
void updateInfo() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error during update.long getSessionId() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getCpuReservationMHz() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getCpuLimitMHz() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getCpuShares() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getCpuUsedMs() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getHostProcessorSpeed() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemReservationMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemLimitMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemShares() throws VMGuestLibErrorException
VMGuestLibErrorException
long getMemMappedMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemActiveMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemOverheadMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemBalloonedMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemSwappedMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemSharedMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemSharedSavedMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.long getMemUsedMB() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.java.math.BigInteger getElapsedMs() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.java.lang.String getResourcePoolPath() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.void close() throws VMGuestLibErrorException
VMGuestLibErrorException
- on error.VMware, Inc. (c)2006