Class CgroupMemory.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CgroupMemory.Builder>
co.elastic.clients.elasticsearch.nodes.CgroupMemory.Builder
- All Implemented Interfaces:
WithJson<CgroupMemory.Builder>,ObjectBuilder<CgroupMemory>
- Enclosing class:
- CgroupMemory
public static class CgroupMemory.Builder
extends WithJsonObjectBuilderBase<CgroupMemory.Builder>
implements ObjectBuilder<CgroupMemory>
Builder for
CgroupMemory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCgroupMemory.final CgroupMemory.BuildercontrolGroup(String value) Thememorycontrol group to which the Elasticsearch process belongs.final CgroupMemory.BuilderlimitInBytes(String value) The maximum amount of user memory (including file cache) allowed for all tasks in the same cgroup as the Elasticsearch process.protected CgroupMemory.Builderself()final CgroupMemory.BuilderusageInBytes(String value) The total current memory usage by processes in the cgroup, in bytes, by all tasks in the same cgroup as the Elasticsearch process.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
controlGroup
Thememorycontrol group to which the Elasticsearch 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 Elasticsearch 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 Elasticsearch process. This value is stored as a string for consistency withlimit_in_bytes.API name:
usage_in_bytes -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CgroupMemory.Builder>
-
build
Builds aCgroupMemory.- Specified by:
buildin interfaceObjectBuilder<CgroupMemory>- Throws:
NullPointerException- if some of the required fields are null.
-