org.jasig.cas.monitor
Enum StatusCode

java.lang.Object
  extended by java.lang.Enum<StatusCode>
      extended by org.jasig.cas.monitor.StatusCode
All Implemented Interfaces:
Serializable, Comparable<StatusCode>

public enum StatusCode
extends Enum<StatusCode>

Monitor status code inspired by HTTP status codes.

Since:
3.5.0
Author:
Marvin S. Addison

Enum Constant Summary
ERROR
           
INFO
           
OK
           
UNKNOWN
           
WARN
           
 
Method Summary
 int value()
          Gets the numeric value of the status code.
static StatusCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StatusCode[] 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

ERROR

public static final StatusCode ERROR

WARN

public static final StatusCode WARN

INFO

public static final StatusCode INFO

OK

public static final StatusCode OK

UNKNOWN

public static final StatusCode UNKNOWN
Method Detail

values

public static StatusCode[] 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 (StatusCode c : StatusCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StatusCode 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

value

public int value()
Gets the numeric value of the status code. Higher values describe more severe conditions.

Returns:
Numeric status code value.


Copyright © 2004-2013 Jasig. All Rights Reserved.