Class CgroupMemoryStats

java.lang.Object
org.opensearch.client.opensearch.nodes.stats.CgroupMemoryStats
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, ToCopyableBuilder<CgroupMemoryStats.Builder,CgroupMemoryStats>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class CgroupMemoryStats extends Object implements PlainJsonSerializable, ToCopyableBuilder<CgroupMemoryStats.Builder,CgroupMemoryStats>
  • Field Details

  • Method Details

    • of

    • controlGroup

      @Nullable public final String controlGroup()
      The memory control group to which the OpenSearch 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 OpenSearch 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 OpenSearch 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)
    • toBuilder

      @Nonnull public CgroupMemoryStats.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<CgroupMemoryStats.Builder,CgroupMemoryStats>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static CgroupMemoryStats.Builder builder()
    • setupCgroupMemoryStatsDeserializer

      protected static void setupCgroupMemoryStatsDeserializer(ObjectDeserializer<CgroupMemoryStats.Builder> op)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object