public class ProcessorUsage extends Object
Constructor and Description |
---|
ProcessorUsage()
Creates a new
ProcessorUsage 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 ProcessorUsage |
from(CompositeData cd)
Receives a
CompositeData representing a ProcessorUsage
object and attempts to return the root ProcessorUsage
instance. |
long |
getBusy()
The time spent by the Processor executing a non-idle thread in microseconds.
|
int |
getId()
A unique identifier assigned to the this Processor.
|
long |
getIdle()
The time spent by the Processor sitting idle in microseconds.
|
int |
getOnline()
The online/offline status of this Processor.
|
long |
getSystem()
The time spent in system mode in microseconds.
|
long |
getTimestamp()
The timestamp when usage statistics were last sampled in microseconds.
|
long |
getUser()
The time spent in user mode in microseconds.
|
long |
getWait()
The time spent by the Processor in Input/Output (IO) wait in microseconds.
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
String |
toString()
Text description of this
ProcessorUsage object. |
public ProcessorUsage()
ProcessorUsage
instance.public long getUser()
public long getSystem()
public long getIdle()
public long getWait()
public long getBusy()
public int getId()
public int getOnline()
public long getTimestamp()
public static ProcessorUsage from(CompositeData cd)
CompositeData
representing a ProcessorUsage
object and attempts to return the root ProcessorUsage
instance.cd
- A CompositeData
that represents a ProcessorUsage
cd
is non- null
, returns a new instance of
ProcessorUsage
, If cd
is null
, returns null
.IllegalArgumentException
- if argument cd
does not correspond to a
ProcessorUsage
with the following attributes:
user
(java.lang.Long
)system
(java.lang.Long
)idle
(java.lang.Long
)wait
(java.lang.Long
)busy
(java.lang.Long
)id
(java.lang.Integer
)online
(java.lang.Integer
)timestamp
(java.lang.Long
)public String toString()
ProcessorUsage
object.toString
in class Object
ProcessorUsage
object.public boolean equals(Object obj)
equals
in class Object
obj
- 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 Object
Object.equals(java.lang.Object)
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2001, 2024 IBM Corp. and others.