com.cloudera.api.model
Class ApiRollingRestartClusterArgs

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

public class ApiRollingRestartClusterArgs
extends Object

Arguments used for Rolling Restart Cluster command.


Constructor Summary
ApiRollingRestartClusterArgs()
           
 
Method Summary
 boolean equals(Object o)
           
 Boolean getRedeployClientConfiguration()
          Re-deploy client configuration.
 List<String> getRestartServiceNames()
          List of services to restart.
 ApiRolesToInclude getRolesToInclude()
          Role types to restart.
 Integer getSlaveBatchSize()
          Number of hosts with slave roles to restart 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.
 Boolean getStaleConfigsOnly()
          Restart roles with stale configs only.
 Boolean getUnUpgradedOnly()
          Restart roles that haven't been upgraded yet.
 int hashCode()
           
 void setRedeployClientConfiguration(Boolean redeployClientConfiguration)
           
 void setRestartServiceNames(List<String> restartServiceNames)
           
 void setRolesToInclude(ApiRolesToInclude rolesToInclude)
           
 void setSlaveBatchSize(Integer slaveBatchSize)
           
 void setSlaveFailCountThreshold(Integer slaveFailCountThreshold)
           
 void setSleepSeconds(Integer sleepSeconds)
           
 void setStaleConfigsOnly(Boolean staleConfigsOnly)
           
 void setUnUpgradedOnly(Boolean unUpgradedOnly)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiRollingRestartClusterArgs

public ApiRollingRestartClusterArgs()
Method Detail

getSlaveBatchSize

public Integer getSlaveBatchSize()
Number of hosts with slave roles to restart 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)

getStaleConfigsOnly

public Boolean getStaleConfigsOnly()
Restart roles with stale configs only.


setStaleConfigsOnly

public void setStaleConfigsOnly(Boolean staleConfigsOnly)

getUnUpgradedOnly

public Boolean getUnUpgradedOnly()
Restart roles that haven't been upgraded yet.


setUnUpgradedOnly

public void setUnUpgradedOnly(Boolean unUpgradedOnly)

getRedeployClientConfiguration

public Boolean getRedeployClientConfiguration()
Re-deploy client configuration. Available since API v6.


setRedeployClientConfiguration

public void setRedeployClientConfiguration(Boolean redeployClientConfiguration)

getRolesToInclude

public ApiRolesToInclude getRolesToInclude()
Role types to restart. Default is slave roles only.


setRolesToInclude

public void setRolesToInclude(ApiRolesToInclude rolesToInclude)

getRestartServiceNames

public List<String> getRestartServiceNames()
List of services to restart.


setRestartServiceNames

public void setRestartServiceNames(List<String> restartServiceNames)

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.