com.cloudera.api.model
Class ApiRollingUpgradeClusterArgs

java.lang.Object
  extended by com.cloudera.api.model.ApiRollingUpgradeClusterArgs

public class ApiRollingUpgradeClusterArgs
extends Object

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


Constructor Summary
ApiRollingUpgradeClusterArgs()
           
 
Method Summary
 boolean equals(Object o)
           
 Integer getSlaveBatchSize()
          Number of slave roles to restart at a time.
 Integer getSlaveFailCountThreshold()
          The threshold for number of slave batches that are allowed to fail to restart before the entire command is considered failed.
 Integer getSleepSeconds()
          Number of seconds to sleep between restarts of slave role batches.
 int hashCode()
           
 void setSlaveBatchSize(Integer slaveBatchSize)
           
 void setSlaveFailCountThreshold(Integer slaveFailCountThreshold)
           
 void setSleepSeconds(Integer 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

getSlaveBatchSize

public Integer 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.


setSlaveBatchSize

public void setSlaveBatchSize(Integer slaveBatchSize)

getSleepSeconds

public Integer getSleepSeconds()
Number of seconds to sleep between restarts of slave role batches. Must be greater than or equal to 0. Default is 0.


setSleepSeconds

public void setSleepSeconds(Integer sleepSeconds)

getSlaveFailCountThreshold

public Integer 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.

This argument is for ADVANCED users only.


setSlaveFailCountThreshold

public void setSlaveFailCountThreshold(Integer slaveFailCountThreshold)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.