Class JvmStats.Mem

java.lang.Object
org.elasticsearch.monitor.jvm.JvmStats.Mem
All Implemented Interfaces:
java.lang.Iterable<JvmStats.MemoryPool>, Writeable
Enclosing class:
JvmStats

public static class JvmStats.Mem
extends java.lang.Object
implements Writeable, java.lang.Iterable<JvmStats.MemoryPool>
  • Constructor Details

    • Mem

      public Mem​(long heapCommitted, long heapUsed, long heapMax, long nonHeapCommitted, long nonHeapUsed, java.util.List<JvmStats.MemoryPool> pools)
    • Mem

      public Mem​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • iterator

      public java.util.Iterator<JvmStats.MemoryPool> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<JvmStats.MemoryPool>
    • getHeapCommitted

      public ByteSizeValue getHeapCommitted()
    • getHeapUsed

      public ByteSizeValue getHeapUsed()
    • getHeapMax

      public ByteSizeValue getHeapMax()
      returns the maximum heap size. 0 bytes signals unknown.
    • getHeapUsedPercent

      public short getHeapUsedPercent()
      returns the heap usage in percent. -1 signals unknown.
    • getNonHeapCommitted

      public ByteSizeValue getNonHeapCommitted()
    • getNonHeapUsed

      public ByteSizeValue getNonHeapUsed()