Class CgroupCpuStat.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CgroupCpuStat.Builder>
co.elastic.clients.elasticsearch.nodes.CgroupCpuStat.Builder
- All Implemented Interfaces:
WithJson<CgroupCpuStat.Builder>,ObjectBuilder<CgroupCpuStat>
- Enclosing class:
- CgroupCpuStat
public static class CgroupCpuStat.Builder
extends WithJsonObjectBuilderBase<CgroupCpuStat.Builder>
implements ObjectBuilder<CgroupCpuStat>
Builder for
CgroupCpuStat.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCgroupCpuStat.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 Elasticsearch process have been throttled.protected CgroupCpuStat.Builderself()final CgroupCpuStat.BuildertimeThrottledNanos(Long value) The total amount of time, in nanoseconds, for which all tasks in the same cgroup as the Elasticsearch process have been throttled.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
-
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 Elasticsearch process have been throttled.API name:
number_of_times_throttled -
timeThrottledNanos
The total amount of time, in nanoseconds, for which all tasks in the same cgroup as the Elasticsearch process have been throttled.API name:
time_throttled_nanos -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CgroupCpuStat.Builder>
-
build
Builds aCgroupCpuStat.- Specified by:
buildin interfaceObjectBuilder<CgroupCpuStat>- Throws:
NullPointerException- if some of the required fields are null.
-