- java.lang.Object
-
- com.ibm.lang.management.AvailableProcessorsNotificationInfo
-
public class AvailableProcessorsNotificationInfo extends Object
Encapsulates the details of a DLPAR notification emitted by aOperatingSystemMXBean
when the number of available processors changes. Specifically, this notification indicates that the value returned byOperatingSystemMXBean.getAvailableProcessors()
has changed.- Since:
- 1.5
-
-
Field Summary
Fields Modifier and Type Field Description static String
AVAILABLE_PROCESSORS_CHANGE
-
Constructor Summary
Constructors Constructor Description AvailableProcessorsNotificationInfo(int newAvailableProcessors)
Constructs a new instance of this object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AvailableProcessorsNotificationInfo
from(CompositeData cd)
Receives aCompositeData
representing aAvailableProcessorsNotificationInfo
object and attempts to return the rootAvailableProcessorsNotificationInfo
instance.int
getNewAvailableProcessors()
Returns the new number of available processors after the change that initiated this notification.
-
-
-
Field Detail
-
AVAILABLE_PROCESSORS_CHANGE
public static final String AVAILABLE_PROCESSORS_CHANGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNewAvailableProcessors
public int getNewAvailableProcessors()
Returns the new number of available processors after the change that initiated this notification.- Returns:
- the number of available processors
-
from
public static AvailableProcessorsNotificationInfo from(CompositeData cd)
Receives aCompositeData
representing aAvailableProcessorsNotificationInfo
object and attempts to return the rootAvailableProcessorsNotificationInfo
instance.- Parameters:
cd
- aCompositeDate
that represents aAvailableProcessorsNotificationInfo
.- Returns:
- if
cd
is non-null
, returns a new instance ofAvailableProcessorsNotificationInfo
. Ifcd
isnull
, returnsnull
. - Throws:
IllegalArgumentException
- if argumentcd
does not correspond to aAvailableProcessorsNotificationInfo
with the following attribute:newAvailableProcessors
(java.lang.Integer
)
-
-