Package org.apache.hadoop.hbase.client
Class BalanceRequest
java.lang.Object
org.apache.hadoop.hbase.client.BalanceRequest
Encapsulates options for executing a run of the Balancer.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final BalanceRequest
private final boolean
private final boolean
-
Constructor Summary
ModifierConstructorDescriptionprivate
BalanceRequest
(boolean dryRun, boolean ignoreRegionsInTransition) -
Method Summary
Modifier and TypeMethodDescriptionstatic BalanceRequest
Get a BalanceRequest for a default run of the balancer.boolean
isDryRun()
Returns true if the balancer should run in dry run mode, otherwise false.boolean
Returns true if the balancer should execute even if regions are in transition, otherwise false.static BalanceRequest.Builder
Create a builder to construct a customBalanceRequest
.
-
Field Details
-
DEFAULT
-
dryRun
-
ignoreRegionsInTransition
-
-
Constructor Details
-
BalanceRequest
-
-
Method Details
-
newBuilder
Create a builder to construct a customBalanceRequest
. -
defaultInstance
Get a BalanceRequest for a default run of the balancer. The default mode executes any moves calculated and will not run if regions are already in transition. -
isDryRun
Returns true if the balancer should run in dry run mode, otherwise false. In dry run mode, moves will be calculated but not executed. -
isIgnoreRegionsInTransition
Returns true if the balancer should execute even if regions are in transition, otherwise false. This is an advanced usage feature, as it can cause more issues than it fixes.
-