Class CgroupMemory

java.lang.Object
co.elastic.clients.elasticsearch.nodes.CgroupMemory
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class CgroupMemory extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • controlGroup

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

      API name: control_group

    • limitInBytes

      @Nullable public final String limitInBytes()
      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

      @Nullable public final String usageInBytes()
      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

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupCgroupMemoryDeserializer

      protected static void setupCgroupMemoryDeserializer(ObjectDeserializer<CgroupMemory.Builder> op)