com.cloudera.api.model
Class ApiSimpleRollingRestartClusterArgs

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

public class ApiSimpleRollingRestartClusterArgs
extends Object

Basic arguments used for Rolling Restart Cluster commands.


Constructor Summary
ApiSimpleRollingRestartClusterArgs()
           
 
Method Summary
 boolean equals(Object o)
           
 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.
 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

ApiSimpleRollingRestartClusterArgs

public ApiSimpleRollingRestartClusterArgs()
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)

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.