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
-
Method Summary
Modifier and TypeMethodDescriptionstatic SystemMemoryOshi
from
(oshi.hardware.GlobalMemory memory) abstract long
The number of bytes in a memory pageabstract long
The amount of actual physical memory, in bytes.abstract long
The current size of the paging/swap file(s), in bytes.final void
traverse
(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:PropertySet
Traverse 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:
traverse
in interfacePropertySet
- Parameters:
visitor
- the visitor- See Also:
-
from
-