public static enum ShardingInfo.ShardingStatus extends Enum<ShardingInfo.ShardingStatus>
| Enum Constant and Description |
|---|
DISABLED |
PENDING |
RUNNING |
SHARDING_FLAG |
| Modifier and Type | Method and Description |
|---|---|
static ShardingInfo.ShardingStatus |
getShardingStatus(boolean isDisabled,
boolean isRunning,
boolean isShardingFlag)
Get sharding status.
|
static ShardingInfo.ShardingStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShardingInfo.ShardingStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShardingInfo.ShardingStatus DISABLED
public static final ShardingInfo.ShardingStatus RUNNING
public static final ShardingInfo.ShardingStatus SHARDING_FLAG
public static final ShardingInfo.ShardingStatus PENDING
public static ShardingInfo.ShardingStatus[] values()
for (ShardingInfo.ShardingStatus c : ShardingInfo.ShardingStatus.values()) System.out.println(c);
public static ShardingInfo.ShardingStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ShardingInfo.ShardingStatus getShardingStatus(boolean isDisabled, boolean isRunning, boolean isShardingFlag)
isDisabled - is disabledisRunning - is runningisShardingFlag - is need to ShardingCopyright © 2021 The Apache Software Foundation. All rights reserved.