Class CgroupCpuStat.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.CgroupCpuStat.Builder
- All Implemented Interfaces:
CopyableBuilder<CgroupCpuStat.Builder,,CgroupCpuStat> MutableBuilder<CgroupCpuStat.Builder,,CgroupCpuStat> ObjectBuilder<CgroupCpuStat>
- Enclosing class:
CgroupCpuStat
public static class CgroupCpuStat.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CgroupCpuStat.Builder,CgroupCpuStat>
Builder for
CgroupCpuStat.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCgroupCpuStat.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CgroupCpuStat.BuildernumberOfElapsedPeriods(Long value) The number of reporting periods (as specified bycfs_period_micros) that have elapsed.final CgroupCpuStat.BuildernumberOfTimesThrottled(Long value) The number of times all tasks in the same cgroup as the OpenSearch process have been throttled.final CgroupCpuStat.BuildertimeThrottledNanos(Long value) API name:time_throttled_nanosMethods 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<CgroupCpuStat.Builder,CgroupCpuStat> - Returns:
- a new builder instance.
-
numberOfElapsedPeriods
The number of reporting periods (as specified bycfs_period_micros) that have elapsed.API name:
number_of_elapsed_periods -
numberOfTimesThrottled
The number of times all tasks in the same cgroup as the OpenSearch process have been throttled.API name:
number_of_times_throttled -
timeThrottledNanos
API name:time_throttled_nanos -
build
Builds aCgroupCpuStat.- Specified by:
buildin interfaceObjectBuilder<CgroupCpuStat>- Throws:
NullPointerException- if some of the required fields are null.
-