@InterfaceAudience.Private public enum ServerState extends Enum<ServerState>
| Enum Constant and Description | 
|---|
| CRASHEDIndicate that the server has crashed, i.e., we have already scheduled a SCP for it. | 
| OFFLINEWAL splitting done. | 
| ONLINEInitial state. | 
| SPLITTINGServer expired/crashed. | 
| SPLITTING_METAOnly server which carries meta can have this state. | 
| SPLITTING_META_DONEIndicate that the meta splitting is done. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ServerState | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static ServerState[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final ServerState ONLINE
public static final ServerState CRASHED
public static final ServerState SPLITTING_META
public static final ServerState SPLITTING_META_DONE
public static final ServerState SPLITTING
public static final ServerState OFFLINE
public static ServerState[] values()
for (ServerState c : ServerState.values()) System.out.println(c);
public static ServerState 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 © 2007–2020 The Apache Software Foundation. All rights reserved.