Class GuestOSMemoryUsage
java.lang.Object
com.ibm.virtualization.management.GuestOSMemoryUsage
This provides a snapshot of the Guest (Virtual Machine(VM)/Logical Partition(LPAR))
Memory usage statistics as seen by the Hypervisor Host.
The supported Operating System and Hypervisor combinations are:
- Linux and Windows on VMWare (IBM Java 8 only).
- AIX and Linux on PowerVM.
- Linux and z/OS on z/VM.
- Guest Operating System memory usage statistics are not available on Linux for PowerKVM.
- Since:
- 1.7.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GuestOSMemoryUsagefrom(CompositeData cd) Receives aCompositeDatarepresenting aGuestOSMemoryUsageobject and attempts to return the rootGuestOSMemoryUsageinstance.longThe amount of real Memory allowed to be used by the Guest as reported by the Hypervisor in MB.longThe total Memory used by the Guest as reported by the Hypervisor in MB.longThe timestamp when the usage statistics were last sampled in microseconds.toString()Text description of thisGuestOSMemoryUsageobject.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
GuestOSMemoryUsage
public GuestOSMemoryUsage()Creates a newGuestOSMemoryUsageinstance.
-
-
Method Details
-
getMemUsed
public long getMemUsed()The total Memory used by the Guest as reported by the Hypervisor in MB.- Returns:
- Current used Memory by the Guest in MB or -1 if info not available.
-
getTimestamp
public long getTimestamp()The timestamp when the usage statistics were last sampled in microseconds.- Returns:
- The last sampling timestamp in microseconds.
-
getMaxMemLimit
public long getMaxMemLimit()The amount of real Memory allowed to be used by the Guest as reported by the Hypervisor in MB.- Returns:
- Max Memory that can be used by the Guest in MB or -1 if info not available or if no limit has been set.
-
from
Receives aCompositeDatarepresenting aGuestOSMemoryUsageobject and attempts to return the rootGuestOSMemoryUsageinstance.- Parameters:
cd- ACompositeDatathat represents aGuestOSMemoryUsage.- Returns:
- if
cdis non-null, returns a new instance ofGuestOSMemoryUsage, Ifcdisnull, returnsnull. - Throws:
IllegalArgumentException- if argumentcddoes not correspond to aGuestOSMemoryUsagewith the following attributes:memUsed(java.lang.Long)timestamp(java.lang.Long)maxMemLimit(java.lang.Long)
-
toString
Text description of thisGuestOSMemoryUsageobject.- Overrides:
toStringin classObject- Returns:
- text description of this
GuestOSMemoryUsageobject.
-