public abstract class AbstractGlobalMemory extends Object implements GlobalMemory
| Constructor and Description |
|---|
AbstractGlobalMemory() |
| Modifier and Type | Method and Description |
|---|---|
PhysicalMemory[] |
getPhysicalMemory()
Physical memory, such as banks of memory.
|
protected long |
parsePhysicalMemorySize(String size)
Parses a string such as "4096 MB" to its long.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAvailable, getPageSize, getTotal, getVirtualMemorypublic PhysicalMemory[] getPhysicalMemory()
GlobalMemoryOn Linux, requires elevated permissions. On FreeBSD and Solaris, requires installation of dmidecode.
getPhysicalMemory in interface GlobalMemoryprotected long parsePhysicalMemorySize(String size)
size - A string of memory sizes like "4096 MB"Copyright © 2020. All rights reserved.