public class AvailableProcessorsNotificationInfo extends Object
OperatingSystemMXBean
when the number
of available processors changes.
Specifically, this notification indicates that the value returned by
OperatingSystemMXBean.getAvailableProcessors()
has changed.Modifier and Type | Field and Description |
---|---|
static String |
AVAILABLE_PROCESSORS_CHANGE |
Constructor and Description |
---|
AvailableProcessorsNotificationInfo(int newAvailableProcessors)
Constructs a new instance of this object.
|
Modifier and Type | Method and Description |
---|---|
static AvailableProcessorsNotificationInfo |
from(CompositeData cd)
Receives a
CompositeData representing a
AvailableProcessorsNotificationInfo object and attempts to
return the root AvailableProcessorsNotificationInfo
instance. |
int |
getNewAvailableProcessors()
Returns the new number of available processors after the change that
initiated this notification.
|
public static final String AVAILABLE_PROCESSORS_CHANGE
public AvailableProcessorsNotificationInfo(int newAvailableProcessors)
newAvailableProcessors
- the new number of processors availablepublic int getNewAvailableProcessors()
public static AvailableProcessorsNotificationInfo from(CompositeData cd)
CompositeData
representing a
AvailableProcessorsNotificationInfo
object and attempts to
return the root AvailableProcessorsNotificationInfo
instance.cd
- a CompositeDate
that represents a
AvailableProcessorsNotificationInfo
.cd
is non- null
, returns a new
instance of AvailableProcessorsNotificationInfo
.
If cd
is null
, returns
null
.IllegalArgumentException
- if argument cd
does not correspond to a
AvailableProcessorsNotificationInfo
with the
following attribute:
newAvailableProcessors
(
java.lang.Integer
)
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2001, 2024 IBM Corp. and others.