Package org.elasticsearch.monitor.jvm
Class JvmStats.Mem
java.lang.Object
org.elasticsearch.monitor.jvm.JvmStats.Mem
- All Implemented Interfaces:
Iterable<JvmStats.MemoryPool>,Writeable
- Enclosing class:
- JvmStats
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionMem(long heapCommitted, long heapUsed, long heapMax, long nonHeapCommitted, long nonHeapUsed, List<JvmStats.MemoryPool> pools)Mem(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionreturns the maximum heap size.shortreturns the heap usage in percent.iterator()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Mem
public Mem(long heapCommitted, long heapUsed, long heapMax, long nonHeapCommitted, long nonHeapUsed, List<JvmStats.MemoryPool> pools) -
Mem
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
iterator
- Specified by:
iteratorin interfaceIterable<JvmStats.MemoryPool>
-
getHeapCommitted
-
getHeapUsed
-
getHeapMax
returns the maximum heap size. 0 bytes signals unknown. -
getHeapUsedPercent
public short getHeapUsedPercent()returns the heap usage in percent. -1 signals unknown. -
getNonHeapCommitted
-
getNonHeapUsed
-