com.ibm.lang.management

Class AvailableProcessorsNotificationInfo

  1. java.lang.Object
  2. extended bycom.ibm.lang.management.AvailableProcessorsNotificationInfo

  1. public class AvailableProcessorsNotificationInfo
  2. extends java.lang.Object
Encapsulates the details of a DLPAR notification emitted by a OperatingSystemMXBean when the number of available processors changes. Specifically, this notifiation indicates that the value returned by OperatingSystemMXBean.getAvailableProcessors() has changed.
Since:
1.5

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
AVAILABLE_PROCESSORS_CHANGE

Constructor Summary

Constructor and Description
AvailableProcessorsNotificationInfo(int newAvailableProcessors)
Constructs a new instance of this object.

Method Summary

Modifier and Type Method and Description
  1. static
  2. AvailableProcessorsNotificationInfo
from(javax.management.openmbean.CompositeData cd)
Receives a CompositeDatarepresenting a AvailableProcessorsNotificationInfo object and attempts to return the root AvailableProcessorsNotificationInfo instance.
  1. int
getNewAvailableProcessors()
Returns the new number of available processors after the change that initiated this notification.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

AVAILABLE_PROCESSORS_CHANGE

  1. public static final java.lang.String AVAILABLE_PROCESSORS_CHANGE
See Also:

Constructor Detail

AvailableProcessorsNotificationInfo

  1. public AvailableProcessorsNotificationInfo( int newAvailableProcessors)
Constructs a new instance of this object.
Parameters:
newAvailableProcessors - the new number of processors available

Method Detail

getNewAvailableProcessors

  1. public int getNewAvailableProcessors( )
Returns the new number of available processors after the change that initiated this notification.
Returns:
the number of available processors

from

  1. public static AvailableProcessorsNotificationInfo from( javax.management.openmbean.CompositeData cd)
Receives a CompositeDatarepresenting a AvailableProcessorsNotificationInfo object and attempts to return the root AvailableProcessorsNotificationInfo instance.
Parameters:
cd - a CompositeDate that represents a AvailableProcessorsNotificationInfo.
Returns:
if cd is non- null, returns a new instance of AvailableProcessorsNotificationInfo. If cd is null, returns null.
Throws:
java.lang.IllegalArgumentException - if argument cd does not correspond to a AvailableProcessorsNotificationInfo with the following attribute:
  • newAvailableProcessors( java.lang.Integer)