Package org.opensearch.monitor.jvm
Class JvmStats.MemoryPoolGcStats
java.lang.Object
org.opensearch.monitor.jvm.JvmStats.MemoryPoolGcStats
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
- Enclosing class:
JvmStats
public static class JvmStats.MemoryPoolGcStats
extends Object
implements org.opensearch.core.common.io.stream.Writeable
Stores the memory usage after the Java virtual machine
most recently expended effort in recycling unused objects
in particular memory pool.
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryPoolGcStats
(long used, long max) MemoryPoolGcStats
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
-
Constructor Details
-
MemoryPoolGcStats
public MemoryPoolGcStats(long used, long max) -
MemoryPoolGcStats
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Throws:
IOException
-
getUsed
public org.opensearch.core.common.unit.ByteSizeValue getUsed() -
getMax
public org.opensearch.core.common.unit.ByteSizeValue getMax() -
getUsagePercent
public short getUsagePercent()
-