Package org.apache.hadoop.hbase.client
Class BalanceResponse.Builder
java.lang.Object
org.apache.hadoop.hbase.client.BalanceResponse.Builder
- Enclosing class:
- BalanceResponse
Used in HMaster to build a 
BalanceResponse for returning results of a balance
 invocation to callers- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Build theBalanceResponsesetBalancerRan(boolean balancerRan) Set true if the balancer ran, otherwise false.setMovesCalculated(int movesCalculated) Set how many moves were calculated by the balancer.setMovesExecuted(int movesExecuted) Set how many of the calculated moves were actually executed by the balancer.
- 
Field Details- 
balancerRan
- 
movesCalculated
- 
movesExecuted
 
- 
- 
Constructor Details- 
Builderprivate Builder()
 
- 
- 
Method Details- 
setBalancerRanSet true if the balancer ran, otherwise false. The balancer may not run in some circumstances, such as if a balance is already running or there are regions already in transition.- Parameters:
- balancerRan- true if balancer ran, false otherwise
 
- 
setMovesCalculatedSet how many moves were calculated by the balancer. This will be zero if the cluster is already balanced.- Parameters:
- movesCalculated- moves calculated by the balance run
 
- 
setMovesExecutedSet how many of the calculated moves were actually executed by the balancer. This should be zero if the balancer is run withBalanceRequest.isDryRun(). It may also not equal movesCalculated if the balancer ran out of time while executing the moves.- Parameters:
- movesExecuted- moves executed by the balance run
 
- 
buildBuild theBalanceResponse
 
-