Package org.apache.druid.error
Enum DruidException.Persona
- All Implemented Interfaces:
Serializable,Comparable<DruidException.Persona>
- Enclosing class:
DruidException
The persona that the message on a DruidException is targeting
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an administrative user, a persona who is interacting with admin APIs and understands Druid query concepts without necessarily owning the infrastructure and operations of the clusterRepresents someone who has all of the context and knowledge to be actively diving into the Druid codebase.Represents a persona who actively owns and operates the cluster.Represents the end-user, a persona who is issuing queries to the Druid Query APIs -
Method Summary
Modifier and TypeMethodDescriptionstatic DruidException.PersonaReturns the enum constant of this type with the specified name.static DruidException.Persona[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USER
Represents the end-user, a persona who is issuing queries to the Druid Query APIs -
ADMIN
Represents an administrative user, a persona who is interacting with admin APIs and understands Druid query concepts without necessarily owning the infrastructure and operations of the cluster -
OPERATOR
Represents a persona who actively owns and operates the cluster. This persona is not assumed to understand Druid query concepts, but instead understand cluster operational concepts. -
DEVELOPER
Represents someone who has all of the context and knowledge to be actively diving into the Druid codebase. This persona exists as a catch-all for anything that is so deep and technically in the weeds that it is not possible to make a message that will make sense to a different persona. Generally speaking, there is a hope that only DEFENSIVE error messages will target this persona.
-
-
Method Details
-
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
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
-