public final class GuestOSProcessorUsage extends Object
| Constructor and Description |
|---|
GuestOSProcessorUsage()
Creates a new
GuestOSProcessorUsage instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares the argument to the receiver, and answers true
if they represent the same object using a class
specific comparison.
|
static GuestOSProcessorUsage |
from(CompositeData cd)
Receives a
CompositeData representing a
GuestOSProcessorUsage object and attempts to return the root
GuestOSProcessorUsage instance. |
float |
getCpuEntitlement()
The total CPU Entitlement assigned to this Guest by the Hypervisor.
|
long |
getCpuTime()
The total used time of the Guest as reported by the Hypervisor in microseconds.
|
long |
getHostCpuClockSpeed()
The the clock speed of the Host Processor in platform-dependent units.
|
long |
getTimestamp()
The timestamp when the usage statistics were last sampled in microseconds.
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
String |
toString()
Text description of this
GuestOSProcessorUsage object. |
public GuestOSProcessorUsage()
GuestOSProcessorUsage instance.public long getCpuTime()
public long getHostCpuClockSpeed()
public long getTimestamp()
public float getCpuEntitlement()
CpuLimitMHz, CpuReservationMHz, CpuShares and HostProcessorSpeed
are used to arrive at the Entitlement.
entitled_proc_capacity/100 on AIX and partition_entitled_capacity/100 on Linux represents the Entitlement.
public static GuestOSProcessorUsage from(CompositeData cd)
CompositeData representing a
GuestOSProcessorUsage object and attempts to return the root
GuestOSProcessorUsage instance.cd - A CompositeData that represents a
GuestOSProcessorUsage.cd is non- null, returns a new instance of
GuestOSProcessorUsage,
If cd is null, returns null.IllegalArgumentException - if argument cd does not correspond to a
GuestOSProcessorUsage with the following attributes:
cpuTime(java.lang.Long)timestamp(java.lang.Long)cpuEntitlement(java.lang.Float)hostCpuClockSpeed(java.lang.Long)public String toString()
GuestOSProcessorUsage object.toString in class ObjectGuestOSProcessorUsage object.public boolean equals(Object obj)
equals in class Objectobj - Object
the object to compare with this object.true
if the object is the same as this object
false
if it is different from this object.Object.hashCode()public int hashCode()
true when passed to
.equals must answer the same value for this
method.hashCode in class ObjectObject.equals(java.lang.Object)Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2001, 2025 IBM Corp. and others.