Package alluxio.master.file.meta
Enum PersistenceState
- java.lang.Object
-
- java.lang.Enum<PersistenceState>
-
- alluxio.master.file.meta.PersistenceState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PersistenceState>
@ThreadSafe public enum PersistenceState extends java.lang.Enum<PersistenceState>
The persistence state of a file in the under-storage system.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOST
NOT_PERSISTED
PERSISTED
TO_BE_PERSISTED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PersistenceState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PersistenceState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_PERSISTED
public static final PersistenceState NOT_PERSISTED
-
TO_BE_PERSISTED
public static final PersistenceState TO_BE_PERSISTED
-
PERSISTED
public static final PersistenceState PERSISTED
-
LOST
public static final PersistenceState LOST
-
-
Method Detail
-
values
public static PersistenceState[] 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 (PersistenceState c : PersistenceState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PersistenceState 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
-
-