java.lang.Object
com.ibm.lang.management.AvailableProcessorsNotificationInfo
Encapsulates the details of a DLPAR notification emitted by a
OperatingSystemMXBean when the number
of available processors changes.
Specifically, this notification indicates that the value returned by
OperatingSystemMXBean.getAvailableProcessors()
has changed.- Since:
- 1.5
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAvailableProcessorsNotificationInfo(int newAvailableProcessors) Constructs a new instance of this object. -
Method Summary
Modifier and TypeMethodDescriptionfrom(CompositeData cd) Receives aCompositeDatarepresenting aAvailableProcessorsNotificationInfoobject and attempts to return the rootAvailableProcessorsNotificationInfoinstance.intReturns the new number of available processors after the change that initiated this notification.
-
Field Details
-
AVAILABLE_PROCESSORS_CHANGE
- See Also:
-
-
Constructor Details
-
AvailableProcessorsNotificationInfo
public AvailableProcessorsNotificationInfo(int newAvailableProcessors) Constructs a new instance of this object.- Parameters:
newAvailableProcessors- the new number of processors available
-
-
Method Details
-
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
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)
-