public final class JvmCpuMonitorInfo extends Object
JvmCpuMonitorInfo provides a snapshot of JVM CPU usage information
that is distributed across thread categories. A time stamp for the snapshot is
also provided.| Constructor and Description |
|---|
JvmCpuMonitorInfo()
Creates a new
JvmCpuMonitorInfo 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 JvmCpuMonitorInfo |
from(CompositeData cd)
Receives a
CompositeData representing a
JvmCpuMonitorInfo object and attempts to return the root
JvmCpuMonitorInfo instance. |
long |
getApplicationCpuTime()
This method returns the total CPU usage for all application threads.
|
long[] |
getApplicationUserCpuTime()
This method returns an array of CPU usage for all user defined thread categories.
|
long |
getGcCpuTime()
This method returns the total CPU usage of all GC threads.
|
long |
getJitCpuTime()
This method returns the total CPU usage of all JIT Threads.
|
long |
getResourceMonitorCpuTime()
This method returns the total CPU usage for all threads of the "Resource-Monitor" category.
|
long |
getSystemJvmCpuTime()
This method returns the total CPU usage of the "System-JVM" category, which
includes GC, JIT and other JVM daemon threads.
|
long |
getTimestamp()
This method returns the last sampling time stamp.
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
String |
toString()
Text description of this
JvmCpuMonitorInfo object. |
public JvmCpuMonitorInfo()
JvmCpuMonitorInfo instance.public long getTimestamp()
public long getApplicationCpuTime()
public long getResourceMonitorCpuTime()
public long getSystemJvmCpuTime()
public long getGcCpuTime()
public long getJitCpuTime()
public long[] getApplicationUserCpuTime()
public static JvmCpuMonitorInfo from(CompositeData cd)
CompositeData representing a
JvmCpuMonitorInfo object and attempts to return the root
JvmCpuMonitorInfo instance.cd - A CompositeData that represents a
JvmCpuMonitorInfo.cd is non- null, returns a new instance of
JvmCpuMonitorInfo,
If cd is null, returns null.IllegalArgumentException - if argument cd does not correspond to a
JvmCpuMonitorInfo with the following attributes:
timestamp(java.lang.Long)applicationCpuTime(java.lang.Long)resourceMonitorCpuTime(java.lang.Long)systemJvmCpuTime(java.lang.Long)gcCpuTime(java.lang.Long)jitCpuTime(java.lang.Long)applicationUserCpuTimepublic String toString()
JvmCpuMonitorInfo object.toString in class ObjectJvmCpuMonitorInfo 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 © 1993, 2025 IBM Corp. and others.
DRAFT internal-b00