Package org.apache.hadoop.hbase.client
Class BalanceResponse
java.lang.Object
org.apache.hadoop.hbase.client.BalanceResponse
Response returned from a balancer invocation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUsed in HMaster to build aBalanceResponsefor returning results of a balance invocation to callers -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final intprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBalanceResponse(boolean balancerRan, int movesCalculated, int movesExecuted) -
Method Summary
Modifier and TypeMethodDescriptionintThe number of moves calculated by the balancer ifisBalancerRan()is true.intThe number of moves actually executed by the balancer if it ran.booleanReturns true if the balancer ran, otherwise false.static BalanceResponse.BuilderCreates a newBalanceResponse.Builder
-
Field Details
-
balancerRan
-
movesCalculated
-
movesExecuted
-
-
Constructor Details
-
BalanceResponse
-
-
Method Details
-
newBuilder
Creates a newBalanceResponse.Builder -
isBalancerRan
Returns true if the balancer ran, otherwise false. The balancer may not run for a variety of reasons, such as: another balance is running, there are regions in transition, the cluster is in maintenance mode, etc. -
getMovesCalculated
The number of moves calculated by the balancer ifisBalancerRan()is true. This will be zero if no better balance could be found. -
getMovesExecuted
The number of moves actually executed by the balancer if it ran. This will be zero ifgetMovesCalculated()is zero or ifBalanceRequest.isDryRun()was true. It may also not be equal togetMovesCalculated()if the balancer was interrupted midway through executing the moves due to max run time.
-