Class ContainerResourceConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerResourceConfig
@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 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 string@Valid LinuxIntelRdtGet intelRdtOOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container's process.@Valid LinuxResourcesGet resourceLimits@Valid List<@Valid POSIXRlimit>Rlimits are POSIX rlimits to apply to the container.@Valid Map<String,LinuxThrottleDevice> IO read rate limit per cgroup per device, bytes per second@Valid Map<String,LinuxThrottleDevice> IO read rate limit per cgroup per device, IO per second@Valid Map<String,LinuxThrottleDevice> IO write rate limit per cgroup per device, bytes per second@Valid Map<String,LinuxThrottleDevice> IO 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.@Valid Map<String,LinuxWeightDevice> 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<@Valid POSIXRlimit> rLimits) voidsetIntelRdt(LinuxIntelRdt intelRdt) voidsetOomScoreAdj(Long oomScoreAdj) voidsetResourceLimits(LinuxResources resourceLimits) voidsetrLimits(List<@Valid 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
-
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
-
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
-
toJson
Convert an instance of ContainerResourceConfig to an JSON string- Returns:
- JSON string
-