Class CgroupCpu.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CgroupCpu.Builder>
co.elastic.clients.elasticsearch.nodes.CgroupCpu.Builder
- All Implemented Interfaces:
WithJson<CgroupCpu.Builder>,ObjectBuilder<CgroupCpu>
- Enclosing class:
- CgroupCpu
public static class CgroupCpu.Builder
extends WithJsonObjectBuilderBase<CgroupCpu.Builder>
implements ObjectBuilder<CgroupCpu>
Builder for
CgroupCpu.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCgroupCpu.final CgroupCpu.BuildercfsPeriodMicros(Integer value) The period of time, in microseconds, for how regularly all tasks in the same cgroup as the Elasticsearch process should have their access to CPU resources reallocated.final CgroupCpu.BuildercfsQuotaMicros(Integer value) The total amount of time, in microseconds, for which all tasks in the same cgroup as the Elasticsearch process can run during one periodcfs_period_micros.final CgroupCpu.BuildercontrolGroup(String value) Thecpucontrol group to which the Elasticsearch process belongs.protected CgroupCpu.Builderself()final CgroupCpu.Builderstat(CgroupCpuStat value) Contains CPU statistics for the node.final CgroupCpu.BuilderContains CPU statistics for the node.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
Thecpucontrol group to which the Elasticsearch process belongs.API name:
control_group -
cfsPeriodMicros
The period of time, in microseconds, for how regularly all tasks in the same cgroup as the Elasticsearch process should have their access to CPU resources reallocated.API name:
cfs_period_micros -
cfsQuotaMicros
The total amount of time, in microseconds, for which all tasks in the same cgroup as the Elasticsearch process can run during one periodcfs_period_micros.API name:
cfs_quota_micros -
stat
Contains CPU statistics for the node.API name:
stat -
stat
public final CgroupCpu.Builder stat(Function<CgroupCpuStat.Builder, ObjectBuilder<CgroupCpuStat>> fn) Contains CPU statistics for the node.API name:
stat -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CgroupCpu.Builder>
-
build
Builds aCgroupCpu.- Specified by:
buildin interfaceObjectBuilder<CgroupCpu>- Throws:
NullPointerException- if some of the required fields are null.
-