public enum ClusterStatus extends Enum<ClusterStatus>
| Enum Constant and Description |
|---|
ConnectFail |
MasterCluster |
SecondaryCluster |
Unknown |
| Modifier and Type | Method and Description |
|---|---|
static ClusterStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusterStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterStatus Unknown
public static final ClusterStatus ConnectFail
public static final ClusterStatus MasterCluster
public static final ClusterStatus SecondaryCluster
public static ClusterStatus[] values()
for (ClusterStatus c : ClusterStatus.values()) System.out.println(c);
public static ClusterStatus 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 nullCopyright © 2023 openGauss. All rights reserved.