public enum ServerRole extends Enum<ServerRole>
Enum Constant and Description |
---|
AGENT |
COORDINATOR |
PRIMARY |
SECONDARY |
SINGLE |
UNDEFINED |
Modifier and Type | Method and Description |
---|---|
static ServerRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerRole SINGLE
public static final ServerRole AGENT
public static final ServerRole COORDINATOR
public static final ServerRole PRIMARY
public static final ServerRole SECONDARY
public static final ServerRole UNDEFINED
public static ServerRole[] values()
for (ServerRole c : ServerRole.values()) System.out.println(c);
public static ServerRole 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 © 2016–2019 ArangoDB GmbH. All rights reserved.