public static enum MasterInfo.MasterInfoField extends Enum<MasterInfo.MasterInfoField>
Enum Constant and Description |
---|
LEADER_MASTER_ADDRESS |
MASTER_ADDRESSES |
RPC_PORT |
SAFE_MODE |
START_TIME_MS |
UP_TIME_MS |
VERSION |
WEB_PORT |
WORKER_ADDRESSES |
ZOOKEEPER_ADDRESSES |
Modifier and Type | Method and Description |
---|---|
static MasterInfo.MasterInfoField |
fromThrift(MasterInfoField field) |
MasterInfoField |
toThrift() |
static MasterInfo.MasterInfoField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MasterInfo.MasterInfoField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MasterInfo.MasterInfoField LEADER_MASTER_ADDRESS
public static final MasterInfo.MasterInfoField MASTER_ADDRESSES
public static final MasterInfo.MasterInfoField RPC_PORT
public static final MasterInfo.MasterInfoField SAFE_MODE
public static final MasterInfo.MasterInfoField START_TIME_MS
public static final MasterInfo.MasterInfoField UP_TIME_MS
public static final MasterInfo.MasterInfoField VERSION
public static final MasterInfo.MasterInfoField WEB_PORT
public static final MasterInfo.MasterInfoField WORKER_ADDRESSES
public static final MasterInfo.MasterInfoField ZOOKEEPER_ADDRESSES
public static MasterInfo.MasterInfoField[] values()
for (MasterInfo.MasterInfoField c : MasterInfo.MasterInfoField.values()) System.out.println(c);
public static MasterInfo.MasterInfoField 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 MasterInfoField toThrift()
public static MasterInfo.MasterInfoField fromThrift(MasterInfoField field)
field
- the thrift representation of the master info field to createCopyright © 2023. All Rights Reserved.