Package oshi.hardware.platform.unix.aix
Class AixGlobalMemory
java.lang.Object
oshi.hardware.common.AbstractGlobalMemory
oshi.hardware.platform.unix.aix.AixGlobalMemory
- All Implemented Interfaces:
GlobalMemory
Memory obtained by perfstat_memory_total_t
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private final Supplier
<com.sun.jna.platform.unix.aix.Perfstat.perfstat_memory_total_t> private final Supplier
<VirtualMemory> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate VirtualMemory
long
The amount of physical memory currently available, in bytes.long
The number of bytes in a memory pagePhysical memory, such as banks of memory.long
getTotal()
The amount of actual physical memory, in bytes.Virtual memory, such as a swap file.private static com.sun.jna.platform.unix.aix.Perfstat.perfstat_memory_total_t
Methods inherited from class oshi.hardware.common.AbstractGlobalMemory
toString
-
Field Details
-
perfstatMem
-
lscfg
-
PAGESIZE
private static final long PAGESIZE- See Also:
-
vm
-
-
Constructor Details
-
AixGlobalMemory
-
-
Method Details
-
getAvailable
public long getAvailable()Description copied from interface:GlobalMemory
The amount of physical memory currently available, in bytes.- Returns:
- Available number of bytes.
-
getTotal
public long getTotal()Description copied from interface:GlobalMemory
The amount of actual physical memory, in bytes.- Returns:
- Total number of bytes.
-
getPageSize
public long getPageSize()Description copied from interface:GlobalMemory
The number of bytes in a memory page- Returns:
- Page size in bytes.
-
getVirtualMemory
Description copied from interface:GlobalMemory
Virtual memory, such as a swap file.- Returns:
- A VirtualMemory object.
-
getPhysicalMemory
Description copied from interface:GlobalMemory
Physical memory, such as banks of memory.On Linux, requires elevated permissions. On FreeBSD and Solaris, requires installation of dmidecode.
- Specified by:
getPhysicalMemory
in interfaceGlobalMemory
- Overrides:
getPhysicalMemory
in classAbstractGlobalMemory
- Returns:
- A list of PhysicalMemory objects.
-
queryPerfstat
private static com.sun.jna.platform.unix.aix.Perfstat.perfstat_memory_total_t queryPerfstat() -
createVirtualMemory
-