Package org.elasticsearch.monitor.jvm
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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description Mem(long heapCommitted, long heapUsed, long heapMax, long nonHeapCommitted, long nonHeapUsed, java.util.List<JvmStats.MemoryPool> pools)
Mem(StreamInput in)
-
Method Summary
Modifier and Type Method Description ByteSizeValue
getHeapCommitted()
ByteSizeValue
getHeapMax()
returns the maximum heap size.ByteSizeValue
getHeapUsed()
short
getHeapUsedPercent()
returns the heap usage in percent.ByteSizeValue
getNonHeapCommitted()
ByteSizeValue
getNonHeapUsed()
java.util.Iterator<JvmStats.MemoryPool>
iterator()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
-
-
Constructor Detail
-
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 Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.
-
iterator
public java.util.Iterator<JvmStats.MemoryPool> iterator()
- Specified by:
iterator
in interfacejava.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()
-
-