Class CgroupCpuStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.CgroupCpuStats.Builder
- All Implemented Interfaces:
CopyableBuilder<CgroupCpuStats.Builder,,CgroupCpuStats> MutableBuilder<CgroupCpuStats.Builder,,CgroupCpuStats> ObjectBuilder<CgroupCpuStats>
- Enclosing class:
CgroupCpuStats
public static class CgroupCpuStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CgroupCpuStats.Builder,CgroupCpuStats>
Builder for
CgroupCpuStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCgroupCpuStats.final CgroupCpuStats.BuildercfsPeriodMicros(Long value) The period of time, in microseconds, for how regularly all tasks in the same cgroup as the OpenSearch process should have their access to CPU resources reallocated.final CgroupCpuStats.BuildercfsQuotaMicros(Long value) The total amount of time, in microseconds, for which all tasks in the same cgroup as the OpenSearch process can run during one periodcfs_period_micros.final CgroupCpuStats.BuildercontrolGroup(String value) Thecpucontrol group to which the OpenSearch process belongs.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CgroupCpuStats.BuilderAPI name:statfinal CgroupCpuStats.Builderstat(CgroupCpuStat value) API name:statMethods 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<CgroupCpuStats.Builder,CgroupCpuStats> - Returns:
- a new builder instance.
-
cfsPeriodMicros
The period of time, in microseconds, for how regularly all tasks in the same cgroup as the OpenSearch 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 OpenSearch process can run during one periodcfs_period_micros.API name:
cfs_quota_micros -
controlGroup
Thecpucontrol group to which the OpenSearch process belongs.API name:
control_group -
stat
API name:stat -
stat
@Nonnull public final CgroupCpuStats.Builder stat(Function<CgroupCpuStat.Builder, ObjectBuilder<CgroupCpuStat>> fn) API name:stat -
build
Builds aCgroupCpuStats.- Specified by:
buildin interfaceObjectBuilder<CgroupCpuStats>- Throws:
NullPointerException- if some of the required fields are null.
-