Class ContainerResourceConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerResourceConfig
@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 ContainerResourceConfig
extends Object
ContainerResourceConfig
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRLimitsItem(POSIXRlimit rLimitsItem) booleanstatic ContainerResourceConfigCreate an instance of ContainerResourceConfig given an JSON stringGet intelRdtOOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container's process.Get resourceLimitsRlimits are POSIX rlimits to apply to the container.IO read rate limit per cgroup per device, bytes per secondIO read rate limit per cgroup per device, IO per secondIO write rate limit per cgroup per device, bytes per secondIO write rate limit per cgroup per device, IO per secondCgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2.Weight per cgroup per device, can override BlkioWeightinthashCode()intelRdt(LinuxIntelRdt intelRdt) oomScoreAdj(Long oomScoreAdj) putThrottleReadBpsDeviceItem(String key, LinuxThrottleDevice throttleReadBpsDeviceItem) putThrottleReadIOPSDeviceItem(String key, LinuxThrottleDevice throttleReadIOPSDeviceItem) putThrottleWriteBpsDeviceItem(String key, LinuxThrottleDevice throttleWriteBpsDeviceItem) putThrottleWriteIOPSDeviceItem(String key, LinuxThrottleDevice throttleWriteIOPSDeviceItem) putUnifiedItem(String key, String unifiedItem) putWeightDeviceItem(String key, LinuxWeightDevice weightDeviceItem) resourceLimits(LinuxResources resourceLimits) rLimits(List<POSIXRlimit> rLimits) voidsetIntelRdt(LinuxIntelRdt intelRdt) voidsetOomScoreAdj(Long oomScoreAdj) voidsetResourceLimits(LinuxResources resourceLimits) voidsetrLimits(List<POSIXRlimit> rLimits) voidsetThrottleReadBpsDevice(Map<String, LinuxThrottleDevice> throttleReadBpsDevice) voidsetThrottleReadIOPSDevice(Map<String, LinuxThrottleDevice> throttleReadIOPSDevice) voidsetThrottleWriteBpsDevice(Map<String, LinuxThrottleDevice> throttleWriteBpsDevice) voidsetThrottleWriteIOPSDevice(Map<String, LinuxThrottleDevice> throttleWriteIOPSDevice) voidsetUnified(Map<String, String> unified) voidsetWeightDevice(Map<String, LinuxWeightDevice> weightDevice) throttleReadBpsDevice(Map<String, LinuxThrottleDevice> throttleReadBpsDevice) throttleReadIOPSDevice(Map<String, LinuxThrottleDevice> throttleReadIOPSDevice) throttleWriteBpsDevice(Map<String, LinuxThrottleDevice> throttleWriteBpsDevice) throttleWriteIOPSDevice(Map<String, LinuxThrottleDevice> throttleWriteIOPSDevice) toJson()Convert an instance of ContainerResourceConfig to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundweightDevice(Map<String, LinuxWeightDevice> weightDevice)
-
Field Details
-
SERIALIZED_NAME_INTEL_RDT
- See Also:
-
SERIALIZED_NAME_OOM_SCORE_ADJ
- See Also:
-
SERIALIZED_NAME_R_LIMITS
- See Also:
-
SERIALIZED_NAME_RESOURCE_LIMITS
- See Also:
-
SERIALIZED_NAME_THROTTLE_READ_BPS_DEVICE
- See Also:
-
SERIALIZED_NAME_THROTTLE_READ_I_O_P_S_DEVICE
- See Also:
-
SERIALIZED_NAME_THROTTLE_WRITE_BPS_DEVICE
- See Also:
-
SERIALIZED_NAME_THROTTLE_WRITE_I_O_P_S_DEVICE
- See Also:
-
SERIALIZED_NAME_UNIFIED
- See Also:
-
SERIALIZED_NAME_WEIGHT_DEVICE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ContainerResourceConfig
public ContainerResourceConfig()
-
-
Method Details
-
intelRdt
-
getIntelRdt
Get intelRdt- Returns:
- intelRdt
-
setIntelRdt
-
oomScoreAdj
-
getOomScoreAdj
OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container's process. Optional.- Returns:
- oomScoreAdj
-
setOomScoreAdj
-
rLimits
-
addRLimitsItem
-
getrLimits
Rlimits are POSIX rlimits to apply to the container. Optional.- Returns:
- rLimits
-
setrLimits
-
resourceLimits
-
getResourceLimits
Get resourceLimits- Returns:
- resourceLimits
-
setResourceLimits
-
throttleReadBpsDevice
public ContainerResourceConfig throttleReadBpsDevice(Map<String, LinuxThrottleDevice> throttleReadBpsDevice) -
putThrottleReadBpsDeviceItem
public ContainerResourceConfig putThrottleReadBpsDeviceItem(String key, LinuxThrottleDevice throttleReadBpsDeviceItem) -
getThrottleReadBpsDevice
IO read rate limit per cgroup per device, bytes per second- Returns:
- throttleReadBpsDevice
-
setThrottleReadBpsDevice
-
throttleReadIOPSDevice
public ContainerResourceConfig throttleReadIOPSDevice(Map<String, LinuxThrottleDevice> throttleReadIOPSDevice) -
putThrottleReadIOPSDeviceItem
public ContainerResourceConfig putThrottleReadIOPSDeviceItem(String key, LinuxThrottleDevice throttleReadIOPSDeviceItem) -
getThrottleReadIOPSDevice
IO read rate limit per cgroup per device, IO per second- Returns:
- throttleReadIOPSDevice
-
setThrottleReadIOPSDevice
-
throttleWriteBpsDevice
public ContainerResourceConfig throttleWriteBpsDevice(Map<String, LinuxThrottleDevice> throttleWriteBpsDevice) -
putThrottleWriteBpsDeviceItem
public ContainerResourceConfig putThrottleWriteBpsDeviceItem(String key, LinuxThrottleDevice throttleWriteBpsDeviceItem) -
getThrottleWriteBpsDevice
IO write rate limit per cgroup per device, bytes per second- Returns:
- throttleWriteBpsDevice
-
setThrottleWriteBpsDevice
-
throttleWriteIOPSDevice
public ContainerResourceConfig throttleWriteIOPSDevice(Map<String, LinuxThrottleDevice> throttleWriteIOPSDevice) -
putThrottleWriteIOPSDeviceItem
public ContainerResourceConfig putThrottleWriteIOPSDeviceItem(String key, LinuxThrottleDevice throttleWriteIOPSDeviceItem) -
getThrottleWriteIOPSDevice
IO write rate limit per cgroup per device, IO per second- Returns:
- throttleWriteIOPSDevice
-
setThrottleWriteIOPSDevice
-
unified
-
putUnifiedItem
-
getUnified
CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional.- Returns:
- unified
-
setUnified
-
weightDevice
-
putWeightDeviceItem
-
getWeightDevice
Weight per cgroup per device, can override BlkioWeight- Returns:
- weightDevice
-
setWeightDevice
-
equals
-
hashCode
public int hashCode() -
toString
-
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 ContainerResourceConfig
-
fromJson
Create an instance of ContainerResourceConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContainerResourceConfig
- Throws:
IOException- if the JSON string is invalid with respect to ContainerResourceConfig
-
toJson
Convert an instance of ContainerResourceConfig to an JSON string- Returns:
- JSON string
-