public enum NodeRole extends java.lang.Enum<NodeRole>
Modifier and Type | Method and Description |
---|---|
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 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(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 nullCopyright © 2019. All rights reserved.