Class DefaultOsxMemoryInfo
- java.lang.Object
-
- net.rubygrapefruit.platform.internal.DefaultOsxMemoryInfo
-
- All Implemented Interfaces:
MemoryInfo
,OsxMemoryInfo
public class DefaultOsxMemoryInfo extends java.lang.Object implements OsxMemoryInfo
-
-
Constructor Summary
Constructors Constructor Description DefaultOsxMemoryInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
details(long pageSize, long freeCount, long inactiveCount, long wiredCount, long activeCount, long externalCount, long speculativeCount, long totalMem, long availableMem)
long
getActivePagesCount()
long
getAvailablePhysicalMemory()
Calculated.long
getExternalPagesCount()
long
getFreePagesCount()
long
getInactivePagesCount()
long
getPageSize()
long
getSpeculativePagesCount()
long
getTotalPhysicalMemory()
Returns the number of bytes of physical memory installed in the machine.long
getWiredPagesCount()
-
-
-
Method Detail
-
details
public void details(long pageSize, long freeCount, long inactiveCount, long wiredCount, long activeCount, long externalCount, long speculativeCount, long totalMem, long availableMem)
-
getPageSize
public long getPageSize()
- Specified by:
getPageSize
in interfaceOsxMemoryInfo
-
getFreePagesCount
public long getFreePagesCount()
- Specified by:
getFreePagesCount
in interfaceOsxMemoryInfo
-
getInactivePagesCount
public long getInactivePagesCount()
- Specified by:
getInactivePagesCount
in interfaceOsxMemoryInfo
-
getWiredPagesCount
public long getWiredPagesCount()
- Specified by:
getWiredPagesCount
in interfaceOsxMemoryInfo
-
getActivePagesCount
public long getActivePagesCount()
- Specified by:
getActivePagesCount
in interfaceOsxMemoryInfo
-
getExternalPagesCount
public long getExternalPagesCount()
- Specified by:
getExternalPagesCount
in interfaceOsxMemoryInfo
-
getSpeculativePagesCount
public long getSpeculativePagesCount()
- Specified by:
getSpeculativePagesCount
in interfaceOsxMemoryInfo
-
getTotalPhysicalMemory
public long getTotalPhysicalMemory()
Description copied from interface:MemoryInfo
Returns the number of bytes of physical memory installed in the machine.- Specified by:
getTotalPhysicalMemory
in interfaceMemoryInfo
- Specified by:
getTotalPhysicalMemory
in interfaceOsxMemoryInfo
-
getAvailablePhysicalMemory
public long getAvailablePhysicalMemory()
Description copied from interface:OsxMemoryInfo
Calculated.- Specified by:
getAvailablePhysicalMemory
in interfaceMemoryInfo
- Specified by:
getAvailablePhysicalMemory
in interfaceOsxMemoryInfo
-
-