Class JvmMemoryStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.JvmMemoryStats.Builder
- All Implemented Interfaces:
CopyableBuilder<JvmMemoryStats.Builder,,JvmMemoryStats> MutableBuilder<JvmMemoryStats.Builder,,JvmMemoryStats> ObjectBuilder<JvmMemoryStats>
- Enclosing class:
JvmMemoryStats
public static class JvmMemoryStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<JvmMemoryStats.Builder,JvmMemoryStats>
Builder for
JvmMemoryStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aJvmMemoryStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.final JvmMemoryStats.BuilderheapCommitted(String value) Amount of memory available for use by the heap.final JvmMemoryStats.BuilderheapCommittedInBytes(Long value) Amount of memory, in bytes, available for use by the heap.final JvmMemoryStats.BuilderMaximum amount of memory available for use by the heap.final JvmMemoryStats.BuilderheapMaxInBytes(Long value) Maximum amount of memory, in bytes, available for use by the heap.final JvmMemoryStats.BuilderMemory currently in use by the heap.final JvmMemoryStats.BuilderheapUsedInBytes(Long value) Memory, in bytes, currently in use by the heap.final JvmMemoryStats.BuilderheapUsedPercent(Double value) Percentage of memory currently in use by the heap.final JvmMemoryStats.BuildernonHeapCommitted(String value) Amount of non-heap memory available.final JvmMemoryStats.BuildernonHeapCommittedInBytes(Long value) Amount of non-heap memory available, in bytes.final JvmMemoryStats.BuildernonHeapUsed(String value) Non-heap memory used.final JvmMemoryStats.BuildernonHeapUsedInBytes(Long value) Non-heap memory used, in bytes.final JvmMemoryStats.Builderpools(String key, Function<Pool.Builder, ObjectBuilder<Pool>> fn) Contains statistics about heap memory usage for the node.final JvmMemoryStats.BuilderContains statistics about heap memory usage for the node.final JvmMemoryStats.BuilderContains statistics about heap memory usage for the node.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<JvmMemoryStats.Builder,JvmMemoryStats> - Returns:
- a new builder instance.
-
heapCommitted
Amount of memory available for use by the heap.API name:
heap_committed -
heapCommittedInBytes
Amount of memory, in bytes, available for use by the heap.API name:
heap_committed_in_bytes -
heapMax
Maximum amount of memory available for use by the heap.API name:
heap_max -
heapMaxInBytes
Maximum amount of memory, in bytes, available for use by the heap.API name:
heap_max_in_bytes -
heapUsed
Memory currently in use by the heap.API name:
heap_used -
heapUsedInBytes
Memory, in bytes, currently in use by the heap.API name:
heap_used_in_bytes -
heapUsedPercent
Percentage of memory currently in use by the heap.API name:
heap_used_percent -
nonHeapCommitted
Amount of non-heap memory available.API name:
non_heap_committed -
nonHeapCommittedInBytes
Amount of non-heap memory available, in bytes.API name:
non_heap_committed_in_bytes -
nonHeapUsed
Non-heap memory used.API name:
non_heap_used -
nonHeapUsedInBytes
Non-heap memory used, in bytes.API name:
non_heap_used_in_bytes -
pools
Contains statistics about heap memory usage for the node.API name:
poolsAdds all elements of
maptopools. -
pools
Contains statistics about heap memory usage for the node.API name:
poolsAdds an entry to
pools. -
pools
@Nonnull public final JvmMemoryStats.Builder pools(String key, Function<Pool.Builder, ObjectBuilder<Pool>> fn) Contains statistics about heap memory usage for the node.API name:
poolsAdds a value to
poolsusing a builder lambda. -
build
Builds aJvmMemoryStats.- Specified by:
buildin interfaceObjectBuilder<JvmMemoryStats>- Throws:
NullPointerException- if some of the required fields are null.
-