public enum MastershipRole extends Enum<MastershipRole>
Enum Constant and Description |
---|
MASTER
Represents a relationship where the controller instance is the master
to a device or a region of network environment.
|
NONE
Represents that the controller instance is not eligible to be the master
to a device or a region of network environment.
|
STANDBY
Represents a relationship where the controller instance is the standby,
i.e.
|
Modifier and Type | Method and Description |
---|---|
static MastershipRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MastershipRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MastershipRole MASTER
public static final MastershipRole STANDBY
public static final MastershipRole NONE
public static MastershipRole[] values()
for (MastershipRole c : MastershipRole.values()) System.out.println(c);
public static MastershipRole 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 null