Enum Constant and Description |
---|
Backup |
Independent |
Master |
Modifier and Type | Method and Description |
---|---|
boolean |
actsAsMaster()
A (probably temporary) convenience function to see if this state is "master-like"- ie, not backup.
|
java.lang.String |
toString(java.util.Locale locale) |
static NodeRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NodeRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeRole Independent
public static final NodeRole Backup
public static final NodeRole Master
public static NodeRole[] values()
for (NodeRole c : NodeRole.values()) System.out.println(c);
public static NodeRole 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 nullpublic boolean actsAsMaster()