public enum ServerType extends Enum<ServerType>
These types are externally visible (e.g., from the output of /druid/coordinator/v1/servers).
For backwards compatibility, when presenting these types externally, the toString() representation of the enum should be used.
The toString() method converts the enum name() to lowercase and replaces underscores with hyphens, which is the format expected for the server type string prior to the patch that introduced ServerType: https://github.com/druid-io/druid/pull/4148
Enum Constant and Description |
---|
BRIDGE |
HISTORICAL |
INDEXER_EXECUTOR |
REALTIME |
Modifier and Type | Method and Description |
---|---|
static ServerType |
fromString(String type) |
boolean |
isSegmentBroadcastTarget()
Indicates this type of node is able to be a target of segment broadcast.
|
boolean |
isSegmentReplicationTarget()
Indicates this type of node is able to be a target of segment replication.
|
String |
toString() |
static ServerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerType HISTORICAL
public static final ServerType BRIDGE
public static final ServerType INDEXER_EXECUTOR
public static final ServerType REALTIME
public static ServerType[] values()
for (ServerType c : ServerType.values()) System.out.println(c);
public static ServerType 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 boolean isSegmentReplicationTarget()
LoadRule
public boolean isSegmentBroadcastTarget()
public static ServerType fromString(String type)
public String toString()
toString
in class Enum<ServerType>
Copyright © 2011–2018. All rights reserved.