com.ibm.lang.management

Class TotalPhysicalMemoryNotificationInfo

  1. java.lang.Object
  2. extended bycom.ibm.lang.management.TotalPhysicalMemoryNotificationInfo

  1. public class TotalPhysicalMemoryNotificationInfo
  2. extends java.lang.Object
Encapsulates the details of a DLPAR notification emitted by a OperatingSystemMXBean when the total physical memory changes. Specifically, this notifiation indicates that the value returned by OperatingSystemMXBean.getTotalPhysicalMemory() has changed.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
TOTAL_PHYSICAL_MEMORY_CHANGE

Constructor Summary

Constructor and Description
TotalPhysicalMemoryNotificationInfo(long newTotalPhysicalMemory)
Constructs a new instance of this object.

Method Summary

Modifier and Type Method and Description
  1. static
  2. TotalPhysicalMemoryNotificationInfo
from(javax.management.openmbean.CompositeData cd)
Receives a CompositeDatarepresenting a TotalPhysicalMemoryNotificationInfo object and attempts to return the root TotalPhysicalMemoryNotificationInfo instance.
  1. long
getNewTotalPhysicalMemory()
Returns the new value of bytes for the total physical memory after the change that this notification corresponds to.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

TOTAL_PHYSICAL_MEMORY_CHANGE

  1. public static final java.lang.String TOTAL_PHYSICAL_MEMORY_CHANGE
See Also:

Constructor Detail

TotalPhysicalMemoryNotificationInfo

  1. public TotalPhysicalMemoryNotificationInfo( long newTotalPhysicalMemory)
Constructs a new instance of this object.
Parameters:
newTotalPhysicalMemory - the new total bytes of physical memory

Method Detail

getNewTotalPhysicalMemory

  1. 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

  1. public static TotalPhysicalMemoryNotificationInfo from( javax.management.openmbean.CompositeData cd)
Receives a CompositeDatarepresenting a TotalPhysicalMemoryNotificationInfo object and attempts to return the root TotalPhysicalMemoryNotificationInfo instance.
Parameters:
cd - a CompositeDate that represents a TotalPhysicalMemoryNotificationInfo.
Returns:
if cd is non- null, returns a new instance of TotalPhysicalMemoryNotificationInfo. If cd is null, returns null.
Throws:
java.lang.IllegalArgumentException - if argument cd does not correspond to a TotalPhysicalMemoryNotificationInfo with the following attribute:
  • newTotalPhysicalMemory( java.lang.Long)