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 voiddetails(long pageSize, long freeCount, long inactiveCount, long wiredCount, long activeCount, long externalCount, long speculativeCount, long totalMem, long availableMem)longgetActivePagesCount()longgetAvailablePhysicalMemory()Calculated.longgetExternalPagesCount()longgetFreePagesCount()longgetInactivePagesCount()longgetPageSize()longgetSpeculativePagesCount()longgetTotalPhysicalMemory()Returns the number of bytes of physical memory installed in the machine.longgetWiredPagesCount()
-
-
-
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:
getPageSizein interfaceOsxMemoryInfo
-
getFreePagesCount
public long getFreePagesCount()
- Specified by:
getFreePagesCountin interfaceOsxMemoryInfo
-
getInactivePagesCount
public long getInactivePagesCount()
- Specified by:
getInactivePagesCountin interfaceOsxMemoryInfo
-
getWiredPagesCount
public long getWiredPagesCount()
- Specified by:
getWiredPagesCountin interfaceOsxMemoryInfo
-
getActivePagesCount
public long getActivePagesCount()
- Specified by:
getActivePagesCountin interfaceOsxMemoryInfo
-
getExternalPagesCount
public long getExternalPagesCount()
- Specified by:
getExternalPagesCountin interfaceOsxMemoryInfo
-
getSpeculativePagesCount
public long getSpeculativePagesCount()
- Specified by:
getSpeculativePagesCountin interfaceOsxMemoryInfo
-
getTotalPhysicalMemory
public long getTotalPhysicalMemory()
Description copied from interface:MemoryInfoReturns the number of bytes of physical memory installed in the machine.- Specified by:
getTotalPhysicalMemoryin interfaceMemoryInfo- Specified by:
getTotalPhysicalMemoryin interfaceOsxMemoryInfo
-
getAvailablePhysicalMemory
public long getAvailablePhysicalMemory()
Description copied from interface:OsxMemoryInfoCalculated.- Specified by:
getAvailablePhysicalMemoryin interfaceMemoryInfo- Specified by:
getAvailablePhysicalMemoryin interfaceOsxMemoryInfo
-
-