Class LinuxMemory
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxMemory
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class LinuxMemory
extends Object
LinuxMemory for Linux cgroup 'memory' resource management
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckBeforeUpdate(Boolean checkBeforeUpdate) disableOOMKiller(Boolean disableOOMKiller) booleanstatic LinuxMemoryCreate an instance of LinuxMemory given an JSON stringCheckBeforeUpdate enables checking if a new memory limit is lower than the current usage during update, and if so, rejecting the new limit.DisableOOMKiller disables the OOM killer for out of memory conditionsKernel memory limit (in bytes).Kernel memory limit for tcp (in bytes)getLimit()Memory limit (in bytes).Memory reservation or soft_limit (in bytes).getSwap()Total memory limit (memory + swap).How aggressive the kernel will swap memory pages.Enables hierarchical memory accountinginthashCode()reservation(Long reservation) voidsetCheckBeforeUpdate(Boolean checkBeforeUpdate) voidsetDisableOOMKiller(Boolean disableOOMKiller) voidvoidsetKernelTCP(Long kernelTCP) voidvoidsetReservation(Long reservation) voidvoidsetSwappiness(Integer swappiness) voidsetUseHierarchy(Boolean useHierarchy) swappiness(Integer swappiness) toJson()Convert an instance of LinuxMemory to an JSON stringtoString()useHierarchy(Boolean useHierarchy) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CHECK_BEFORE_UPDATE
- See Also:
-
SERIALIZED_NAME_DISABLE_O_O_M_KILLER
- See Also:
-
SERIALIZED_NAME_KERNEL
- See Also:
-
SERIALIZED_NAME_KERNEL_T_C_P
- See Also:
-
SERIALIZED_NAME_LIMIT
- See Also:
-
SERIALIZED_NAME_RESERVATION
- See Also:
-
SERIALIZED_NAME_SWAP
- See Also:
-
SERIALIZED_NAME_SWAPPINESS
- See Also:
-
SERIALIZED_NAME_USE_HIERARCHY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LinuxMemory
public LinuxMemory()
-
-
Method Details
-
validateJsonElement
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
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
-
checkBeforeUpdate
-
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
-
disableOOMKiller
-
getDisableOOMKiller
DisableOOMKiller disables the OOM killer for out of memory conditions- Returns:
- disableOOMKiller
-
setDisableOOMKiller
-
kernel
-
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
-
kernelTCP
-
getKernelTCP
Kernel memory limit for tcp (in bytes)- Returns:
- kernelTCP
-
setKernelTCP
-
limit
-
getLimit
Memory limit (in bytes).- Returns:
- limit
-
setLimit
-
reservation
-
getReservation
Memory reservation or soft_limit (in bytes).- Returns:
- reservation
-
setReservation
-
swap
-
getSwap
Total memory limit (memory + swap).- Returns:
- swap
-
setSwap
-
swappiness
-
getSwappiness
How aggressive the kernel will swap memory pages.- Returns:
- swappiness
-
setSwappiness
-
useHierarchy
-
getUseHierarchy
Enables hierarchical memory accounting- Returns:
- useHierarchy
-
setUseHierarchy
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of LinuxMemory to an JSON string- Returns:
- JSON string
-