Class 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 Details

    • Builder

      public Builder()
  • Method Details

    • controlGroup

      public final CgroupMemory.Builder controlGroup(@Nullable String value)
      The memory control group to which the Elasticsearch process belongs.

      API name: control_group

    • limitInBytes

      public final CgroupMemory.Builder limitInBytes(@Nullable String value)
      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 a long, 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 a long almost certainly means no limit has been set for the cgroup.

      API name: limit_in_bytes

    • usageInBytes

      public final CgroupMemory.Builder usageInBytes(@Nullable 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. This value is stored as a string for consistency with limit_in_bytes.

      API name: usage_in_bytes

    • self

      protected CgroupMemory.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<CgroupMemory.Builder>
    • build

      public CgroupMemory build()
      Builds a CgroupMemory.
      Specified by:
      build in interface ObjectBuilder<CgroupMemory>
      Throws:
      NullPointerException - if some of the required fields are null.