Class AvailableProcessorsNotificationInfo

java.lang.Object
com.ibm.lang.management.AvailableProcessorsNotificationInfo

public class AvailableProcessorsNotificationInfo extends Object
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 Details

  • 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 a CompositeData representing 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:
      IllegalArgumentException - if argument cd does not correspond to a AvailableProcessorsNotificationInfo with the following attribute:
      • newAvailableProcessors( java.lang.Integer)