Class V1beta2ExemptPriorityLevelConfiguration

java.lang.Object
io.kubernetes.client.openapi.models.V1beta2ExemptPriorityLevelConfiguration

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1beta2ExemptPriorityLevelConfiguration extends Object
ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.
  • Field Details

    • SERIALIZED_NAME_LENDABLE_PERCENT

      public static final String SERIALIZED_NAME_LENDABLE_PERCENT
      See Also:
    • SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES

      public static final String SERIALIZED_NAME_NOMINAL_CONCURRENCY_SHARES
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • V1beta2ExemptPriorityLevelConfiguration

      public V1beta2ExemptPriorityLevelConfiguration()
  • Method Details

    • lendablePercent

      public V1beta2ExemptPriorityLevelConfiguration lendablePercent(Integer lendablePercent)
    • getLendablePercent

      @Nullable public Integer getLendablePercent()
      `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
      Returns:
      lendablePercent
    • setLendablePercent

      public void setLendablePercent(Integer lendablePercent)
    • nominalConcurrencyShares

      public V1beta2ExemptPriorityLevelConfiguration nominalConcurrencyShares(Integer nominalConcurrencyShares)
    • getNominalConcurrencyShares

      @Nullable public Integer getNominalConcurrencyShares()
      `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.
      Returns:
      nominalConcurrencyShares
    • setNominalConcurrencyShares

      public void setNominalConcurrencyShares(Integer nominalConcurrencyShares)
    • 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 V1beta2ExemptPriorityLevelConfiguration
    • fromJson

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

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