Class CgroupMemoryStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.CgroupMemoryStats.Builder
- All Implemented Interfaces:
CopyableBuilder<CgroupMemoryStats.Builder,,CgroupMemoryStats> MutableBuilder<CgroupMemoryStats.Builder,,CgroupMemoryStats> ObjectBuilder<CgroupMemoryStats>
- Enclosing class:
CgroupMemoryStats
public static class CgroupMemoryStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CgroupMemoryStats.Builder,CgroupMemoryStats>
Builder for
CgroupMemoryStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCgroupMemoryStats.controlGroup(String value) Thememorycontrol group to which the OpenSearch process belongs.copy()Create a new builderCopyableBuilderthat is a copy of this one.limitInBytes(String value) The maximum amount of user memory (including file cache) allowed for all tasks in the same cgroup as the OpenSearch process.usageInBytes(String value) The total current memory usage by processes in the cgroup, in bytes, by all tasks in the same cgroup as the OpenSearch process.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<CgroupMemoryStats.Builder,CgroupMemoryStats> - Returns:
- a new builder instance.
-
controlGroup
Thememorycontrol group to which the OpenSearch process belongs.API name:
control_group -
limitInBytes
The maximum amount of user memory (including file cache) allowed for all tasks in the same cgroup as the OpenSearch process. This value can be too big to store in along, so is returned as a string so that the value returned can exactly match what the underlying operating system interface returns. Any value that is too large to parse into alongalmost certainly means no limit has been set for the cgroup.API name:
limit_in_bytes -
usageInBytes
The total current memory usage by processes in the cgroup, in bytes, by all tasks in the same cgroup as the OpenSearch process. This value is stored as a string for consistency withlimit_in_bytes.API name:
usage_in_bytes -
build
Builds aCgroupMemoryStats.- Specified by:
buildin interfaceObjectBuilder<CgroupMemoryStats>- Throws:
NullPointerException- if some of the required fields are null.
-