org.jasig.cas.monitor
Class SessionMonitor

java.lang.Object
  extended by org.jasig.cas.monitor.SessionMonitor
All Implemented Interfaces:
Monitor<SessionStatus>

public class SessionMonitor
extends Object
implements Monitor<SessionStatus>

Monitors the status of a TicketRegistry that supports the TicketRegistryState interface for exposing internal state information used in status reports.

Since:
3.5.0
Author:
Marvin S. Addison

Constructor Summary
SessionMonitor()
           
 
Method Summary
 String getName()
          Gets the name of the monitor.
 SessionStatus observe()
          Observes the monitored resource and reports the status.
 void setServiceTicketCountWarnThreshold(int threshold)
          Sets the threshold above which warnings are issued for service ticket counts in excess of value.
 void setSessionCountWarnThreshold(int threshold)
          Sets the threshold above which warnings are issued for session counts in excess of value.
 void setTicketRegistry(TicketRegistryState state)
          Sets the ticket registry that exposes state information that may be queried by this monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionMonitor

public SessionMonitor()
Method Detail

setTicketRegistry

public void setTicketRegistry(TicketRegistryState state)
Sets the ticket registry that exposes state information that may be queried by this monitor.

Parameters:
state -

setSessionCountWarnThreshold

public void setSessionCountWarnThreshold(int threshold)
Sets the threshold above which warnings are issued for session counts in excess of value.

Parameters:
threshold - Warn threshold if non-negative value, otherwise warnings are disabled.

setServiceTicketCountWarnThreshold

public void setServiceTicketCountWarnThreshold(int threshold)
Sets the threshold above which warnings are issued for service ticket counts in excess of value.

Parameters:
threshold - Warn threshold if non-negative value, otherwise warnings are disabled.

getName

public String getName()
Gets the name of the monitor.

Specified by:
getName in interface Monitor<SessionStatus>
Returns:
Monitor name.

observe

public SessionStatus observe()
Observes the monitored resource and reports the status.

Specified by:
observe in interface Monitor<SessionStatus>
Returns:
Status of monitored resource.


Copyright © 2004-2013 Jasig. All Rights Reserved.