com.ibm.lang.management
Class TotalPhysicalMemoryNotificationInfo
- java.lang.Object
com.ibm.lang.management.TotalPhysicalMemoryNotificationInfo
- public class TotalPhysicalMemoryNotificationInfo
- extends java.lang.Object
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 |
|---|---|
|
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 |
|---|---|
from(javax.management.openmbean.CompositeData cd)
Receives a
CompositeDatarepresenting a
TotalPhysicalMemoryNotificationInfo object and attempts to
return the root TotalPhysicalMemoryNotificationInfo
instance.
|
|
|
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
- public static final java.lang.String TOTAL_PHYSICAL_MEMORY_CHANGE
See Also:
Constructor Detail
TotalPhysicalMemoryNotificationInfo
- public TotalPhysicalMemoryNotificationInfo( long newTotalPhysicalMemory)
Constructs a new instance of this object.
Parameters:
newTotalPhysicalMemory - the new total bytes of physical memory 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( 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)