com.cloudera.api.model
Class ApiRollingUpgradeServicesArgs

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

public class ApiRollingUpgradeServicesArgs
extends Object

Arguments used for Rolling Upgrade command.


Constructor Summary
ApiRollingUpgradeServicesArgs()
           
 
Method Summary
 boolean equals(Object o)
           
 Integer getSlaveBatchSize()
          Number of hosts with slave roles to upgrade at a time.
 Integer getSlaveFailCountThreshold()
          The threshold for number of slave host 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 host batches.
 String getUpgradeFromCdhVersion()
          Current CDH Version of the services.
 List<String> getUpgradeServiceNames()
          List of services to upgrade.
 String getUpgradeToCdhVersion()
          Target CDH Version for the services.
 int hashCode()
           
 void setSlaveBatchSize(Integer slaveBatchSize)
           
 void setSlaveFailCountThreshold(Integer slaveFailCountThreshold)
           
 void setSleepSeconds(Integer sleepSeconds)
           
 void setUpgradeFromCdhVersion(String upgradeFromCdhVersion)
           
 void setUpgradeServiceNames(List<String> upgradeServiceNames)
           
 void setUpgradeToCdhVersion(String upgradeToCdhVersion)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiRollingUpgradeServicesArgs

public ApiRollingUpgradeServicesArgs()
Method Detail

getUpgradeFromCdhVersion

public String getUpgradeFromCdhVersion()
Current CDH Version of the services. Example versions are: "5.1.0", "5.2.2" or "5.4.0"


setUpgradeFromCdhVersion

public void setUpgradeFromCdhVersion(String upgradeFromCdhVersion)

getUpgradeToCdhVersion

public String getUpgradeToCdhVersion()
Target CDH Version for the services. The CDH version should already be present and activated on the nodes. Example versions are: "5.1.0", "5.2.2" or "5.4.0"


setUpgradeToCdhVersion

public void setUpgradeToCdhVersion(String upgradeToCdhVersion)

getSlaveBatchSize

public Integer getSlaveBatchSize()
Number of hosts with slave roles to upgrade at a time. Must be greater than zero. Default is 1.


setSlaveBatchSize

public void setSlaveBatchSize(Integer slaveBatchSize)

getSleepSeconds

public Integer getSleepSeconds()
Number of seconds to sleep between restarts of slave host 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 host batches that are allowed to fail to restart before the entire command is considered failed. Must be greater than or equal to 0. Default is 0.

This argument is for ADVANCED users only.


setSlaveFailCountThreshold

public void setSlaveFailCountThreshold(Integer slaveFailCountThreshold)

getUpgradeServiceNames

public List<String> getUpgradeServiceNames()
List of services to upgrade. Only the services that support rolling upgrade should be included.


setUpgradeServiceNames

public void setUpgradeServiceNames(List<String> upgradeServiceNames)

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.