Package alluxio.stress.master
Enum Operation
- java.lang.Object
-
- java.lang.Enum<Operation>
-
- alluxio.stress.master.Operation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_DIRCREATE_FILEDELETE_FILEGET_BLOCK_LOCATIONSGET_FILE_STATUSLIST_DIRLIST_DIR_LOCATEDOPEN_FILERENAME_FILE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OperationfromString(java.lang.String text)Creates an instance type from the string.java.lang.StringtoString()static OperationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Operation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_FILE
public static final Operation CREATE_FILE
-
GET_BLOCK_LOCATIONS
public static final Operation GET_BLOCK_LOCATIONS
-
GET_FILE_STATUS
public static final Operation GET_FILE_STATUS
-
LIST_DIR
public static final Operation LIST_DIR
-
LIST_DIR_LOCATED
public static final Operation LIST_DIR_LOCATED
-
OPEN_FILE
public static final Operation OPEN_FILE
-
RENAME_FILE
public static final Operation RENAME_FILE
-
DELETE_FILE
public static final Operation DELETE_FILE
-
CREATE_DIR
public static final Operation CREATE_DIR
-
-
Method Detail
-
values
public static Operation[] 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 (Operation c : Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Operation 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:
toStringin classjava.lang.Enum<Operation>
-
fromString
public static Operation fromString(java.lang.String text)
Creates an instance type from the string. This method is case insensitive.- Parameters:
text- the instance type in string- Returns:
- the created instance
-
-