Class LinuxMemory

java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxMemory

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class LinuxMemory extends Object
LinuxMemory for Linux cgroup 'memory' resource management
  • Field Details

  • Constructor Details

    • LinuxMemory

      public LinuxMemory()
  • Method Details

    • checkBeforeUpdate

      public LinuxMemory checkBeforeUpdate(Boolean checkBeforeUpdate)
    • getCheckBeforeUpdate

      @Nullable public Boolean getCheckBeforeUpdate()
      CheckBeforeUpdate enables checking if a new memory limit is lower than the current usage during update, and if so, rejecting the new limit.
      Returns:
      checkBeforeUpdate
    • setCheckBeforeUpdate

      public void setCheckBeforeUpdate(Boolean checkBeforeUpdate)
    • disableOOMKiller

      public LinuxMemory disableOOMKiller(Boolean disableOOMKiller)
    • getDisableOOMKiller

      @Nullable public Boolean getDisableOOMKiller()
      DisableOOMKiller disables the OOM killer for out of memory conditions
      Returns:
      disableOOMKiller
    • setDisableOOMKiller

      public void setDisableOOMKiller(Boolean disableOOMKiller)
    • kernel

      public LinuxMemory kernel(Long kernel)
    • getKernel

      @Nullable public Long getKernel()
      Kernel memory limit (in bytes). Deprecated: kernel-memory limits are not supported in cgroups v2, and were obsoleted in [kernel v5.4]. This field should no longer be used, as it may be ignored by runtimes. [kernel v5.4]: https://github.com/torvalds/linux/commit/0158115f702b0ba208ab0
      Returns:
      kernel
    • setKernel

      public void setKernel(Long kernel)
    • kernelTCP

      public LinuxMemory kernelTCP(Long kernelTCP)
    • getKernelTCP

      @Nullable public Long getKernelTCP()
      Kernel memory limit for tcp (in bytes)
      Returns:
      kernelTCP
    • setKernelTCP

      public void setKernelTCP(Long kernelTCP)
    • limit

      public LinuxMemory limit(Long limit)
    • getLimit

      @Nullable public Long getLimit()
      Memory limit (in bytes).
      Returns:
      limit
    • setLimit

      public void setLimit(Long limit)
    • reservation

      public LinuxMemory reservation(Long reservation)
    • getReservation

      @Nullable public Long getReservation()
      Memory reservation or soft_limit (in bytes).
      Returns:
      reservation
    • setReservation

      public void setReservation(Long reservation)
    • swap

      public LinuxMemory swap(Long swap)
    • getSwap

      @Nullable public Long getSwap()
      Total memory limit (memory + swap).
      Returns:
      swap
    • setSwap

      public void setSwap(Long swap)
    • swappiness

      public LinuxMemory swappiness(Integer swappiness)
    • getSwappiness

      @Nullable public Integer getSwappiness()
      How aggressive the kernel will swap memory pages.
      Returns:
      swappiness
    • setSwappiness

      public void setSwappiness(Integer swappiness)
    • useHierarchy

      public LinuxMemory useHierarchy(Boolean useHierarchy)
    • getUseHierarchy

      @Nullable public Boolean getUseHierarchy()
      Enables hierarchical memory accounting
      Returns:
      useHierarchy
    • setUseHierarchy

      public void setUseHierarchy(Boolean useHierarchy)
    • equals

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

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

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

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to LinuxMemory
    • fromJson

      public static LinuxMemory fromJson(String jsonString) throws IOException
      Create an instance of LinuxMemory given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of LinuxMemory
      Throws:
      IOException - if the JSON string is invalid with respect to LinuxMemory
    • toJson

      public String toJson()
      Convert an instance of LinuxMemory to an JSON string
      Returns:
      JSON string