public class TotalPhysicalMemoryNotificationInfo extends Object
OperatingSystemMXBean when the total
physical memory changes.
Specifically, this notification indicates that the value returned by
OperatingSystemMXBean.getTotalPhysicalMemorySize()
has changed.| Modifier and Type | Field and Description |
|---|---|
static String |
TOTAL_PHYSICAL_MEMORY_CHANGE |
| Constructor and Description |
|---|
TotalPhysicalMemoryNotificationInfo(long newTotalPhysicalMemory)
Constructs a new instance of this object.
|
| Modifier and Type | Method and Description |
|---|---|
static TotalPhysicalMemoryNotificationInfo |
from(CompositeData cd)
Receives a
CompositeData representing a
TotalPhysicalMemoryNotificationInfo object and attempts to
return the root TotalPhysicalMemoryNotificationInfo
instance. |
long |
getNewTotalPhysicalMemory()
Returns the new value of bytes for the total physical memory after
the change that this notification corresponds to.
|
public static final String TOTAL_PHYSICAL_MEMORY_CHANGE
public TotalPhysicalMemoryNotificationInfo(long newTotalPhysicalMemory)
newTotalPhysicalMemory - the new total bytes of physical memorypublic long getNewTotalPhysicalMemory()
public static TotalPhysicalMemoryNotificationInfo from(CompositeData cd)
CompositeData representing a
TotalPhysicalMemoryNotificationInfo object and attempts to
return the root TotalPhysicalMemoryNotificationInfo
instance.cd - a CompositeDate that represents a
TotalPhysicalMemoryNotificationInfo.cd is non- null, returns a new
instance of TotalPhysicalMemoryNotificationInfo.
If cd is null, returns
null.IllegalArgumentException - if argument cd does not correspond to a
TotalPhysicalMemoryNotificationInfo with the
following attribute:
newTotalPhysicalMemory( java.lang.Long)
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2001, 2025 IBM Corp. and others.