Package alluxio.exception
Enum PreconditionMessage
- java.lang.Object
-
- java.lang.Enum<PreconditionMessage>
-
- alluxio.exception.PreconditionMessage
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PreconditionMessage>
@ThreadSafe public enum PreconditionMessage extends java.lang.Enum<PreconditionMessage>
Precondition messages used across Alluxio. Note: To minimize merge conflicts, please sort alphabetically in this section.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_WRITE_LOCATION_POLICY_UNSPECIFIED
EMPTY_FILE_INFO_LIST_FOR_PERMISSION_CHECK
ERR_BUFFER_STATE
ERR_READ_BUFFER_NULL
ERR_SEEK_NEGATIVE
ERR_SEEK_PAST_END_OF_FILE
ERR_WRITE_BUFFER_NULL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static PreconditionMessage
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PreconditionMessage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY_FILE_INFO_LIST_FOR_PERMISSION_CHECK
public static final PreconditionMessage EMPTY_FILE_INFO_LIST_FOR_PERMISSION_CHECK
-
ERR_BUFFER_STATE
public static final PreconditionMessage ERR_BUFFER_STATE
-
ERR_READ_BUFFER_NULL
public static final PreconditionMessage ERR_READ_BUFFER_NULL
-
ERR_SEEK_NEGATIVE
public static final PreconditionMessage ERR_SEEK_NEGATIVE
-
ERR_SEEK_PAST_END_OF_FILE
public static final PreconditionMessage ERR_SEEK_PAST_END_OF_FILE
-
ERR_WRITE_BUFFER_NULL
public static final PreconditionMessage ERR_WRITE_BUFFER_NULL
-
BLOCK_WRITE_LOCATION_POLICY_UNSPECIFIED
public static final PreconditionMessage BLOCK_WRITE_LOCATION_POLICY_UNSPECIFIED
-
-
Method Detail
-
values
public static PreconditionMessage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PreconditionMessage c : PreconditionMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PreconditionMessage valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<PreconditionMessage>
-
-