Class FreeBsdGlobalMemory
java.lang.Object
oshi.hardware.common.AbstractGlobalMemory
oshi.hardware.platform.unix.freebsd.FreeBsdGlobalMemory
- All Implemented Interfaces:
GlobalMemory
Memory obtained by sysctl vm.stats
-
Field Summary
Fields -
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 pagelong
getTotal()
The amount of actual physical memory, in bytes.Virtual memory, such as a swap file.private static long
private static long
private long
Methods inherited from class oshi.hardware.common.AbstractGlobalMemory
getPhysicalMemory, toString
-
Field Details
-
available
-
total
-
pageSize
-
vm
-
-
Constructor Details
-
FreeBsdGlobalMemory
FreeBsdGlobalMemory()
-
-
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.
-
queryVmStats
private long queryVmStats() -
queryPhysMem
private static long queryPhysMem() -
queryPageSize
private static long queryPageSize() -
createVirtualMemory
-