Package io.deephaven.process
Class SystemMemoryOshi
java.lang.Object
io.deephaven.process.SystemMemoryOshi
- All Implemented Interfaces:
PropertySet
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.properties.PropertySet
PropertySet.PropertiesImpl, PropertySet.StringListImpl, PropertySet.StringMapImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SystemMemoryOshifrom(oshi.hardware.GlobalMemory memory) abstract longThe number of bytes in a memory pageabstract longThe amount of actual physical memory, in bytes.abstract longThe current size of the paging/swap file(s), in bytes.final voidtraverse(PropertyVisitor visitor) Traverse this property set and output the property key/values to the given visitor.
-
Constructor Details
-
SystemMemoryOshi
public SystemMemoryOshi()
-
-
Method Details
-
getPhysicalTotal
@Parameter public abstract long getPhysicalTotal()The amount of actual physical memory, in bytes.- Returns:
- Total number of bytes.
-
getSwapTotal
@Parameter public abstract long getSwapTotal()The current size of the paging/swap file(s), in bytes. If the paging/swap file can be extended, this is a soft limit.- Returns:
- Total swap in bytes.
-
getPageSize
@Parameter public abstract long getPageSize()The number of bytes in a memory page- Returns:
- Page size in bytes.
-
traverse
Description copied from interface:PropertySetTraverse this property set and output the property key/values to the given visitor.Callers should typically prefer to call
PropertyVisitor.visitProperties(PropertySet), as the inversion of logic allows the visitor (the more stateful object) to potentially perform initialization logic and traverse more efficiently.- Specified by:
traversein interfacePropertySet- Parameters:
visitor- the visitor- See Also:
-
from
-