ApiRollingUpgradeClusterArgs (cloudera-manager-api-swagger 7.13.1 API)
Date: 2026-05-19

com.cloudera.api.swagger.model

## Class ApiRollingUpgradeClusterArgs

- java.lang.Object
- - com.cloudera.api.swagger.model.ApiRollingUpgradeClusterArgs

-     @Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen",
                 date="2026-05-19T08:00:51.241Z[Etc/UTC]")
      public class ApiRollingUpgradeClusterArgs
      extends Object

  Rolling upgrade arguments used in the CDH Upgrade Command. Part of ApiCdhUpgradeArgs.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ApiRollingUpgradeClusterArgs()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `BigDecimal` | `getSlaveBatchSize()` Number of slave roles to restart at a time.
    `BigDecimal` | `getSlaveFailCountThreshold()` The threshold for number of slave batches that are allowed to fail to restart before the entire command is considered failed.
    `BigDecimal` | `getSleepSeconds()` Number of seconds to sleep between restarts of slave role batches.
    `int` | `hashCode()`
    `void` | `setSlaveBatchSize(BigDecimal slaveBatchSize)`
    `void` | `setSlaveFailCountThreshold(BigDecimal slaveFailCountThreshold)`
    `void` | `setSleepSeconds(BigDecimal sleepSeconds)`
    `ApiRollingUpgradeClusterArgs` | `slaveBatchSize(BigDecimal slaveBatchSize)`
    `ApiRollingUpgradeClusterArgs` | `slaveFailCountThreshold(BigDecimal slaveFailCountThreshold)`
    `ApiRollingUpgradeClusterArgs` | `sleepSeconds(BigDecimal sleepSeconds)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ApiRollingUpgradeClusterArgs

          public ApiRollingUpgradeClusterArgs()

  - ### Method Detail

    - #### slaveBatchSize

          public ApiRollingUpgradeClusterArgs slaveBatchSize(BigDecimal slaveBatchSize)

    - #### getSlaveBatchSize

          public BigDecimal getSlaveBatchSize()

      Number of slave roles to restart at a time. Must be greater than zero. Default is 1. Please note that for HDFS, this number should be less than the replication factor (default 3) to ensure data availability during rolling restart.
      Returns:
        slaveBatchSize

    - #### setSlaveBatchSize

          public void setSlaveBatchSize(BigDecimal slaveBatchSize)

    - #### sleepSeconds

          public ApiRollingUpgradeClusterArgs sleepSeconds(BigDecimal sleepSeconds)

    - #### getSleepSeconds

          public BigDecimal getSleepSeconds()

      Number of seconds to sleep between restarts of slave role batches. Must be greater than or equal to 0. Default is 0.
      Returns:
        sleepSeconds

    - #### setSleepSeconds

          public void setSleepSeconds(BigDecimal sleepSeconds)

    - #### slaveFailCountThreshold

          public ApiRollingUpgradeClusterArgs slaveFailCountThreshold(BigDecimal slaveFailCountThreshold)

    - #### getSlaveFailCountThreshold

          public BigDecimal getSlaveFailCountThreshold()

      The threshold for number of slave batches that are allowed to fail to restart before the entire command is considered failed. Must be greather than or equal to 0. Default is 0. <p> This argument is for ADVANCED users only. </p>
      Returns:
        slaveFailCountThreshold

    - #### setSlaveFailCountThreshold

          public void setSlaveFailCountThreshold(BigDecimal slaveFailCountThreshold)

    - #### 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`

Copyright © 2026. All rights reserved.