org.jasig.cas.monitor
Class HealthStatus

java.lang.Object
  extended by org.jasig.cas.monitor.Status
      extended by org.jasig.cas.monitor.HealthStatus

public class HealthStatus
extends Status

Describes the overall health status of the CAS server as determined by composite status values.

Since:
3.5.0
Author:
Marvin S. Addison

Field Summary
 
Fields inherited from class org.jasig.cas.monitor.Status
ERROR, INFO, OK, UNKNOWN, WARN
 
Constructor Summary
HealthStatus(StatusCode code, Map<String,Status> detailMap)
          Creates a new status object with the given code.
 
Method Summary
 Map<String,Status> getDetails()
          Gets the status details comprising the individual health checks performed for overall health status.
 
Methods inherited from class org.jasig.cas.monitor.Status
getCode, getDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HealthStatus

public HealthStatus(StatusCode code,
                    Map<String,Status> detailMap)
Creates a new status object with the given code.

Parameters:
code - Status code.
detailMap - Map of names to status information. A reasonable name would be, for example, the name of the monitor that produced it.
See Also:
Status.getCode()
Method Detail

getDetails

public Map<String,Status> getDetails()
Gets the status details comprising the individual health checks performed for overall health status.

Returns:
Map of named status items to status information for each check performed.


Copyright © 2004-2013 Jasig. All Rights Reserved.