org.jasig.cas.monitor
Class Status

java.lang.Object
  extended by org.jasig.cas.monitor.Status
Direct Known Subclasses:
CacheStatus, HealthStatus, MemoryStatus, PoolStatus, SessionStatus

public class Status
extends Object

Describes a generic status condition.

Since:
3.5.0
Author:
Marvin S. Addison

Field Summary
static Status ERROR
          Generic ERROR status.
static Status INFO
          Generic INFO status.
static Status OK
          Generic OK status.
static Status UNKNOWN
          Generic UNKNOWN status.
static Status WARN
          Generic WARN status.
 
Constructor Summary
Status(StatusCode code)
          Creates a new status object with the given code.
Status(StatusCode code, String desc)
          Creates a new status object with the given code.
 
Method Summary
 StatusCode getCode()
          Gets the status code.
 String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final Status UNKNOWN
Generic UNKNOWN status.


OK

public static final Status OK
Generic OK status.


INFO

public static final Status INFO
Generic INFO status.


WARN

public static final Status WARN
Generic WARN status.


ERROR

public static final Status ERROR
Generic ERROR status.

Constructor Detail

Status

public Status(StatusCode code)
Creates a new status object with the given code.

Parameters:
code - Status code.
See Also:
getCode()

Status

public Status(StatusCode code,
              String desc)
Creates a new status object with the given code.

Parameters:
code - Status code.
desc - Human-readable status description.
See Also:
getCode()
Method Detail

getCode

public StatusCode getCode()
Gets the status code.

Returns:
Status code.

getDescription

public String getDescription()
Returns:
Human-readable description of status.


Copyright © 2004-2013 Jasig. All Rights Reserved.