public enum NodeRole extends Enum<NodeRole>
| Modifier and Type | Method and Description |
|---|---|
static NodeRole |
fromCapabilities(org.graylog2.plugin.ServerStatus serverStatus) |
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 MASTER
public static final NodeRole SERVER
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 nullpublic static NodeRole fromCapabilities(org.graylog2.plugin.ServerStatus serverStatus)
Copyright © 2015-2016 Graylog, Inc.. All Rights Reserved.