Class LinuxBlockIO

java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxBlockIO
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LinuxBlockIO extends Object implements Serializable
LinuxBlockIO for Linux cgroup 'blkio' resource management
See Also:
  • Field Details

  • Constructor Details

    • LinuxBlockIO

      public LinuxBlockIO()
  • Method Details

    • 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<LinuxThrottleDevice> throttleReadBpsDevice)
    • addThrottleReadBpsDeviceItem

      public LinuxBlockIO addThrottleReadBpsDeviceItem(LinuxThrottleDevice throttleReadBpsDeviceItem)
    • getThrottleReadBpsDevice

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

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

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

      public LinuxBlockIO addThrottleReadIOPSDeviceItem(LinuxThrottleDevice throttleReadIOPSDeviceItem)
    • getThrottleReadIOPSDevice

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

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

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

      public LinuxBlockIO addThrottleWriteBpsDeviceItem(LinuxThrottleDevice throttleWriteBpsDeviceItem)
    • getThrottleWriteBpsDevice

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

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

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

      public LinuxBlockIO addThrottleWriteIOPSDeviceItem(LinuxThrottleDevice throttleWriteIOPSDeviceItem)
    • getThrottleWriteIOPSDevice

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

      public void setThrottleWriteIOPSDevice(List<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<LinuxWeightDevice> weightDevice)
    • addWeightDeviceItem

      public LinuxBlockIO addWeightDeviceItem(LinuxWeightDevice weightDeviceItem)
    • getWeightDevice

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

      public void setWeightDevice(List<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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object 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
    • toJson

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