Package org.apache.pinot.spi.services
Enum ServiceRole
- java.lang.Object
-
- java.lang.Enum<ServiceRole>
-
- org.apache.pinot.spi.services.ServiceRole
-
- All Implemented Interfaces:
Serializable,Comparable<ServiceRole>,java.lang.constant.Constable
public enum ServiceRole extends Enum<ServiceRole>
ServiceRole defines a role that Pinot Service could start/stop.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROKERCONTROLLERMINIONSERVER
-
Method Summary
Modifier and Type Method Description static ServiceRolevalueOf(String name)Returns the enum constant of this type with the specified name.static ServiceRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTROLLER
public static final ServiceRole CONTROLLER
-
BROKER
public static final ServiceRole BROKER
-
SERVER
public static final ServiceRole SERVER
-
MINION
public static final ServiceRole MINION
-
-
Method Detail
-
values
public static ServiceRole[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceRole valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-