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
Modifier and TypeClassDescriptionstatic final class
Used in HMaster to build aBalanceResponse
for returning results of a balance invocation to callers -
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final int
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
BalanceResponse
(boolean balancerRan, int movesCalculated, int movesExecuted) -
Method Summary
Modifier and TypeMethodDescriptionint
The number of moves calculated by the balancer ifisBalancerRan()
is true.int
The number of moves actually executed by the balancer if it ran.boolean
Returns true if the balancer ran, otherwise false.static BalanceResponse.Builder
Creates 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.
-