@InterfaceAudience.Public public final class BalanceRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BalanceRequest.Builder
Builder for constructing a
BalanceRequest |
Modifier and Type | Field and Description |
---|---|
private static BalanceRequest |
DEFAULT |
private boolean |
dryRun |
private boolean |
ignoreRegionsInTransition |
Modifier | Constructor and Description |
---|---|
private |
BalanceRequest(boolean dryRun,
boolean ignoreRegionsInTransition) |
Modifier and Type | Method and Description |
---|---|
static BalanceRequest |
defaultInstance()
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 |
isIgnoreRegionsInTransition()
Returns true if the balancer should execute even if regions are in transition, otherwise false.
|
static BalanceRequest.Builder |
newBuilder()
Create a builder to construct a custom
BalanceRequest . |
private static final BalanceRequest DEFAULT
private final boolean dryRun
private final boolean ignoreRegionsInTransition
private BalanceRequest(boolean dryRun, boolean ignoreRegionsInTransition)
public static BalanceRequest.Builder newBuilder()
BalanceRequest
.public static BalanceRequest defaultInstance()
public boolean isDryRun()
public boolean isIgnoreRegionsInTransition()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.