Class TotalPhysicalMemoryNotificationInfo
java.lang.Object
com.ibm.lang.management.TotalPhysicalMemoryNotificationInfo
Encapsulates the details of a DLPAR notification emitted by a
OperatingSystemMXBean
when the total
physical memory changes.
Specifically, this notification indicates that the value returned by
OperatingSystemMXBean.getTotalPhysicalMemorySize()
has changed.-
Field Summary
-
Constructor Summary
ConstructorDescriptionTotalPhysicalMemoryNotificationInfo
(long newTotalPhysicalMemory) Constructs a new instance of this object. -
Method Summary
Modifier and TypeMethodDescriptionfrom
(CompositeData cd) Receives aCompositeData
representing aTotalPhysicalMemoryNotificationInfo
object and attempts to return the rootTotalPhysicalMemoryNotificationInfo
instance.long
Returns the new value of bytes for the total physical memory after the change that this notification corresponds to.
-
Field Details
-
TOTAL_PHYSICAL_MEMORY_CHANGE
- See Also:
-
-
Constructor Details
-
TotalPhysicalMemoryNotificationInfo
public TotalPhysicalMemoryNotificationInfo(long newTotalPhysicalMemory) Constructs a new instance of this object.- Parameters:
newTotalPhysicalMemory
- the new total bytes of physical memory
-
-
Method Details
-
getNewTotalPhysicalMemory
public long getNewTotalPhysicalMemory()Returns the new value of bytes for the total physical memory after the change that this notification corresponds to.- Returns:
- the new physical memory total in bytes
-
from
Receives aCompositeData
representing aTotalPhysicalMemoryNotificationInfo
object and attempts to return the rootTotalPhysicalMemoryNotificationInfo
instance.- Parameters:
cd
- aCompositeDate
that represents aTotalPhysicalMemoryNotificationInfo
.- Returns:
- if
cd
is non-null
, returns a new instance ofTotalPhysicalMemoryNotificationInfo
. Ifcd
isnull
, returnsnull
. - Throws:
IllegalArgumentException
- if argumentcd
does not correspond to aTotalPhysicalMemoryNotificationInfo
with the following attribute:newTotalPhysicalMemory
(java.lang.Long
)
-