Enum AlertSeverity

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

    public enum AlertSeverity
    extends java.lang.Enum<AlertSeverity>
    This enumeration defines the severities that may be used for alert types.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ERROR
      Indicates that the associated alert type is used for error messages.
      FATAL
      Indicates that the associated alert type is used for fatal alerts that cause the server to shut down or lose significant functionality.
      INFO
      Indicates that the associated alert type is used for informational messages.
      WARNING
      Indicates that the associated alert type is used for warning messages.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AlertSeverity forName​(java.lang.String name)
      Retrieves the alert severity with the specified name.
      java.lang.String getName()
      Retrieves the name of this alert severity.
      static AlertSeverity valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AlertSeverity[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • INFO

        public static final AlertSeverity INFO
        Indicates that the associated alert type is used for informational messages.
      • WARNING

        public static final AlertSeverity WARNING
        Indicates that the associated alert type is used for warning messages.
      • ERROR

        public static final AlertSeverity ERROR
        Indicates that the associated alert type is used for error messages.
      • FATAL

        public static final AlertSeverity FATAL
        Indicates that the associated alert type is used for fatal alerts that cause the server to shut down or lose significant functionality.
    • Method Detail

      • values

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

        public static AlertSeverity 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
      • getName

        public java.lang.String getName()
        Retrieves the name of this alert severity.
        Returns:
        The name of this alert severity.
      • forName

        public static AlertSeverity forName​(java.lang.String name)
        Retrieves the alert severity with the specified name.
        Parameters:
        name - The name of the alert severity to retrieve.
        Returns:
        The requested alert severity, or null if there is no such severity.