Class DefaultOsxMemoryInfo
java.lang.Object
net.rubygrapefruit.platform.internal.DefaultOsxMemoryInfo
- All Implemented Interfaces:
MemoryInfo
,OsxMemoryInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
details
(long pageSize, long freeCount, long inactiveCount, long wiredCount, long activeCount, long externalCount, long speculativeCount, long totalMem, long availableMem) long
long
Calculated.long
long
long
long
long
long
Returns the number of bytes of physical memory installed in the machine.long
-
Constructor Details
-
DefaultOsxMemoryInfo
public DefaultOsxMemoryInfo()
-
-
Method Details
-
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
-