Class AvailableProcessorsNotificationInfo

    • Constructor Detail

      • AvailableProcessorsNotificationInfo

        public AvailableProcessorsNotificationInfo​(int newAvailableProcessors)
        Constructs a new instance of this object.
        Parameters:
        newAvailableProcessors - the new number of processors available
    • 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 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)