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
ConstructorDescriptionMem
(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.short
returns the heap usage in percent.iterator()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
iterator
- Specified by:
iterator
in 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
-