Enum Operation

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Operation>

    public enum Operation
    extends java.lang.Enum<Operation>
    The operations for the master stress tests.
    • 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
      • SET_ATTRIBUTE

        public static final Operation SET_ATTRIBUTE
      • CREATE_DELETE_FILE

        public static final Operation CREATE_DELETE_FILE
      • CREATE_DIR

        public static final Operation CREATE_DIR
      • CREATE_TREE

        public static final Operation CREATE_TREE
      • LOAD_METADATA

        public static final Operation LOAD_METADATA
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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