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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCgroupMemory
.final CgroupMemory.Builder
controlGroup
(String value) Thememory
control group to which the Elasticsearch process belongs.final CgroupMemory.Builder
limitInBytes
(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.Builder
self()
final CgroupMemory.Builder
usageInBytes
(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
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
controlGroup
Thememory
control 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 along
almost 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:
self
in classWithJsonObjectBuilderBase<CgroupMemory.Builder>
-
build
Builds aCgroupMemory
.- Specified by:
build
in interfaceObjectBuilder<CgroupMemory>
- Throws:
NullPointerException
- if some of the required fields are null.
-