Class LinuxBlockIO

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

@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 LinuxBlockIO extends Object
LinuxBlockIO for Linux cgroup 'blkio' resource management
  • Field Details

  • Constructor Details

    • LinuxBlockIO

      public LinuxBlockIO()
  • Method Details

    • 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 LinuxBlockIO
    • fromJson

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

      public LinuxBlockIO leafWeight(Integer leafWeight)
    • getLeafWeight

      @Nullable public Integer getLeafWeight()
      Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler only
      Returns:
      leafWeight
    • setLeafWeight

      public void setLeafWeight(Integer leafWeight)
    • throttleReadBpsDevice

      public LinuxBlockIO throttleReadBpsDevice(List<@Valid LinuxThrottleDevice> throttleReadBpsDevice)
    • addThrottleReadBpsDeviceItem

      public LinuxBlockIO addThrottleReadBpsDeviceItem(LinuxThrottleDevice throttleReadBpsDeviceItem)
    • getThrottleReadBpsDevice

      @Nullable @Valid public @Valid List<@Valid LinuxThrottleDevice> getThrottleReadBpsDevice()
      IO read rate limit per cgroup per device, bytes per second
      Returns:
      throttleReadBpsDevice
    • setThrottleReadBpsDevice

      public void setThrottleReadBpsDevice(List<@Valid LinuxThrottleDevice> throttleReadBpsDevice)
    • throttleReadIOPSDevice

      public LinuxBlockIO throttleReadIOPSDevice(List<@Valid LinuxThrottleDevice> throttleReadIOPSDevice)
    • addThrottleReadIOPSDeviceItem

      public LinuxBlockIO addThrottleReadIOPSDeviceItem(LinuxThrottleDevice throttleReadIOPSDeviceItem)
    • getThrottleReadIOPSDevice

      @Nullable @Valid public @Valid List<@Valid LinuxThrottleDevice> getThrottleReadIOPSDevice()
      IO read rate limit per cgroup per device, IO per second
      Returns:
      throttleReadIOPSDevice
    • setThrottleReadIOPSDevice

      public void setThrottleReadIOPSDevice(List<@Valid LinuxThrottleDevice> throttleReadIOPSDevice)
    • throttleWriteBpsDevice

      public LinuxBlockIO throttleWriteBpsDevice(List<@Valid LinuxThrottleDevice> throttleWriteBpsDevice)
    • addThrottleWriteBpsDeviceItem

      public LinuxBlockIO addThrottleWriteBpsDeviceItem(LinuxThrottleDevice throttleWriteBpsDeviceItem)
    • getThrottleWriteBpsDevice

      @Nullable @Valid public @Valid List<@Valid LinuxThrottleDevice> getThrottleWriteBpsDevice()
      IO write rate limit per cgroup per device, bytes per second
      Returns:
      throttleWriteBpsDevice
    • setThrottleWriteBpsDevice

      public void setThrottleWriteBpsDevice(List<@Valid LinuxThrottleDevice> throttleWriteBpsDevice)
    • throttleWriteIOPSDevice

      public LinuxBlockIO throttleWriteIOPSDevice(List<@Valid LinuxThrottleDevice> throttleWriteIOPSDevice)
    • addThrottleWriteIOPSDeviceItem

      public LinuxBlockIO addThrottleWriteIOPSDeviceItem(LinuxThrottleDevice throttleWriteIOPSDeviceItem)
    • getThrottleWriteIOPSDevice

      @Nullable @Valid public @Valid List<@Valid LinuxThrottleDevice> getThrottleWriteIOPSDevice()
      IO write rate limit per cgroup per device, IO per second
      Returns:
      throttleWriteIOPSDevice
    • setThrottleWriteIOPSDevice

      public void setThrottleWriteIOPSDevice(List<@Valid LinuxThrottleDevice> throttleWriteIOPSDevice)
    • weight

      public LinuxBlockIO weight(Integer weight)
    • getWeight

      @Nullable public Integer getWeight()
      Specifies per cgroup weight
      Returns:
      weight
    • setWeight

      public void setWeight(Integer weight)
    • weightDevice

      public LinuxBlockIO weightDevice(List<@Valid LinuxWeightDevice> weightDevice)
    • addWeightDeviceItem

      public LinuxBlockIO addWeightDeviceItem(LinuxWeightDevice weightDeviceItem)
    • getWeightDevice

      @Nullable @Valid public @Valid List<@Valid LinuxWeightDevice> getWeightDevice()
      Weight per cgroup per device, can override BlkioWeight
      Returns:
      weightDevice
    • setWeightDevice

      public void setWeightDevice(List<@Valid LinuxWeightDevice> weightDevice)
    • 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
    • toJson

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