public enum MastershipRole extends java.lang.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(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null