org.jasig.cas.monitor
Class SessionStatus

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

public class SessionStatus
extends Status

Provides status information about the number of SSO sessions established in CAS.

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
SessionStatus(StatusCode code, String desc)
          Creates a new status object with the given code.
SessionStatus(StatusCode code, String desc, int sessions, int serviceTickets)
          Creates a new status object with the given code.
 
Method Summary
 int getServiceTicketCount()
          Gets the total number of service tickets in the CAS ticket registry.
 int getSessionCount()
          Gets total number of SSO sessions maintained by CAS.
 
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

SessionStatus

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

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

SessionStatus

public SessionStatus(StatusCode code,
                     String desc,
                     int sessions,
                     int serviceTickets)
Creates a new status object with the given code.

Parameters:
code - Status code.
desc - Human-readable status description.
sessions - Number of established SSO sessions in ticket registry.
serviceTickets - Number of service tickets in ticket registry.
See Also:
Status.getCode()
Method Detail

getSessionCount

public int getSessionCount()
Gets total number of SSO sessions maintained by CAS.

Returns:
Total number of SSO sessions.

getServiceTicketCount

public int getServiceTicketCount()
Gets the total number of service tickets in the CAS ticket registry.

Returns:
Total number of service tickets.


Copyright © 2004-2013 Jasig. All Rights Reserved.