public enum NodeRole extends Enum<NodeRole>
| Modifier and Type | Method and Description |
|---|---|
static NodeRole |
valueOf(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 NONE
public static final NodeRole SHARD
public static final NodeRole BACKUP
public static final NodeRole CLIENT
public static final NodeRole MASTER
public static NodeRole[] values()
for (NodeRole c : NodeRole.values()) System.out.println(c);
public static NodeRole 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 nullCopyright © 2017. All rights reserved.