public class ProcessingCapacityNotificationInfo
extends java.lang.Object
OperatingSystemMXBean
when the available
processing capacity changes.
Specifically, this notifiation indicates that the value returned by
OperatingSystemMXBean.getProcessingCapacity()
has changed.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROCESSING_CAPACITY_CHANGE |
Constructor and Description |
---|
ProcessingCapacityNotificationInfo(int newProcessingCapacity)
Constructs a new instance of this object.
|
Modifier and Type | Method and Description |
---|---|
static ProcessingCapacityNotificationInfo |
from(javax.management.openmbean.CompositeData cd)
Receives a
CompositeData representing a
ProcessingCapacityNotificationInfo object and attempts to
return the root ProcessingCapacityNotificationInfo
instance. |
int |
getNewProcessingCapacity()
Returns the new processing capacity after the change that this
notification corresponds to.
|
public static final java.lang.String PROCESSING_CAPACITY_CHANGE
public ProcessingCapacityNotificationInfo(int newProcessingCapacity)
newProcessingCapacity
- the new processing capacity in units of 1% of a physical
processor's capacitypublic int getNewProcessingCapacity()
public static ProcessingCapacityNotificationInfo from(javax.management.openmbean.CompositeData cd)
CompositeData
representing a
ProcessingCapacityNotificationInfo
object and attempts to
return the root ProcessingCapacityNotificationInfo
instance.cd
- a CompositeDate
that represents a
ProcessingCapacityNotificationInfo
.cd
is non- null
, returns a new
instance of ProcessingCapacityNotificationInfo
.
If cd
is null
, returns
null
.java.lang.IllegalArgumentException
- if argument cd
does not correspond to a
ProcessingCapacityNotificationInfo
with the
following attribute:
newProcessingCapacity
(
java.lang.Integer
)