Enum SystemLoadState

    • Enum Constant Detail

      • NORMAL

        public static final SystemLoadState NORMAL
        Normal level of the load
      • OVERLOAD

        public static final SystemLoadState OVERLOAD
        The system is overloaded, need to reduce resource-consuming operations
      • CRITICAL

        public static final SystemLoadState CRITICAL
        The critical oveload of the system. Need to perform emergency stop of all resource-consuming operations
    • Method Detail

      • values

        public static SystemLoadState[] 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 (SystemLoadState c : SystemLoadState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SystemLoadState valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null