- java.lang.Object
-
- com.ibm.lang.management.AvailableProcessorsNotificationInfo
-
public class AvailableProcessorsNotificationInfo extends Object
Encapsulates the details of a DLPAR notification emitted by aOperatingSystemMXBeanwhen 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 StringAVAILABLE_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 AvailableProcessorsNotificationInfofrom(CompositeData cd)Receives aCompositeDatarepresenting aAvailableProcessorsNotificationInfoobject and attempts to return the rootAvailableProcessorsNotificationInfoinstance.intgetNewAvailableProcessors()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 aCompositeDatarepresenting aAvailableProcessorsNotificationInfoobject and attempts to return the rootAvailableProcessorsNotificationInfoinstance.- Parameters:
cd- aCompositeDatethat represents aAvailableProcessorsNotificationInfo.- Returns:
- if
cdis non-null, returns a new instance ofAvailableProcessorsNotificationInfo. Ifcdisnull, returnsnull. - Throws:
IllegalArgumentException- if argumentcddoes not correspond to aAvailableProcessorsNotificationInfowith the following attribute:newAvailableProcessors(java.lang.Integer)
-
-