@InterfaceAudience.Public public final class BalanceResponse extends Object
Modifier and Type | Method and Description |
---|---|
int |
getMovesCalculated()
The number of moves calculated by the balancer if
isBalancerRan() is true. |
int |
getMovesExecuted()
The number of moves actually executed by the balancer if it ran.
|
boolean |
isBalancerRan()
Returns true if the balancer ran, otherwise false.
|
static org.apache.hadoop.hbase.client.BalanceResponse.Builder |
newBuilder()
Creates a new
BalanceResponse.Builder |
public static org.apache.hadoop.hbase.client.BalanceResponse.Builder newBuilder()
BalanceResponse.Builder
public boolean isBalancerRan()
public int getMovesCalculated()
isBalancerRan()
is true. This will
be zero if no better balance could be found.public int getMovesExecuted()
getMovesCalculated()
is zero or if BalanceRequest.isDryRun()
was true. It may
also not be equal to getMovesCalculated()
if the balancer was interrupted midway
through executing the moves due to max run time.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.