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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BalanceRequestprivate final booleanprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBalanceRequest(boolean dryRun, boolean ignoreRegionsInTransition) -
Method Summary
Modifier and TypeMethodDescriptionstatic BalanceRequestGet a BalanceRequest for a default run of the balancer.booleanisDryRun()Returns true if the balancer should run in dry run mode, otherwise false.booleanReturns true if the balancer should execute even if regions are in transition, otherwise false.static BalanceRequest.BuilderCreate 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.
-