Class DefaultOsxMemoryInfo
java.lang.Object
net.rubygrapefruit.platform.internal.DefaultOsxMemoryInfo
- All Implemented Interfaces:
MemoryInfo,OsxMemoryInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddetails(long pageSize, long freeCount, long inactiveCount, long wiredCount, long activeCount, long externalCount, long speculativeCount, long totalMem, long availableMem) longlongCalculated.longlonglonglonglonglongReturns 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:
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
-