- java.lang.Object
-
- com.ibm.lang.management.TotalPhysicalMemoryNotificationInfo
-
public class TotalPhysicalMemoryNotificationInfo extends Object
Encapsulates the details of a DLPAR notification emitted by aOperatingSystemMXBean
when the total physical memory changes. Specifically, this notification indicates that the value returned byOperatingSystemMXBean.getTotalPhysicalMemorySize()
has changed.
-
-
Field Summary
Fields Modifier and Type Field Description static String
TOTAL_PHYSICAL_MEMORY_CHANGE
-
Constructor Summary
Constructors Constructor Description TotalPhysicalMemoryNotificationInfo(long newTotalPhysicalMemory)
Constructs a new instance of this object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TotalPhysicalMemoryNotificationInfo
from(CompositeData cd)
Receives aCompositeData
representing aTotalPhysicalMemoryNotificationInfo
object and attempts to return the rootTotalPhysicalMemoryNotificationInfo
instance.long
getNewTotalPhysicalMemory()
Returns the new value of bytes for the total physical memory after the change that this notification corresponds to.
-
-
-
Field Detail
-
TOTAL_PHYSICAL_MEMORY_CHANGE
public static final String TOTAL_PHYSICAL_MEMORY_CHANGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public static TotalPhysicalMemoryNotificationInfo from(CompositeData cd)
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
)
-
-