@InterfaceAudience.Private public enum ServerState extends Enum<ServerState>
枚举常量和说明 |
---|
CRASHED
Indicate that the server has crashed, i.e., we have already scheduled a SCP for it.
|
OFFLINE
WAL splitting done.
|
ONLINE
Initial state.
|
SPLITTING
Server expired/crashed.
|
SPLITTING_META
Only server which carries meta can have this state.
|
SPLITTING_META_DONE
Indicate that the meta splitting is done.
|
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
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.