Class SystemMemoryOshi

java.lang.Object
io.deephaven.process.SystemMemoryOshi
All Implemented Interfaces:
PropertySet

@Immutable public abstract class SystemMemoryOshi extends Object implements PropertySet
  • 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

      public final void traverse(PropertyVisitor visitor)
      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 interface PropertySet
      Parameters:
      visitor - the visitor
      See Also:
    • from

      public static SystemMemoryOshi from(oshi.hardware.GlobalMemory memory)