org.jasig.cas.monitor
Class PoolStatus

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

public class PoolStatus
extends Status

Describes the status of a resource pool.

Since:
3.5.0
Author:
Marvin S. Addison

Field Summary
static int UNKNOWN_COUNT
          Return value for getActiveCount() and getIdleCount() when pool metrics are unknown or unknowable.
 
Fields inherited from class org.jasig.cas.monitor.Status
ERROR, INFO, OK, UNKNOWN, WARN
 
Constructor Summary
PoolStatus(StatusCode code, String desc, int active, int idle)
          Creates a new status object with the given code.
 
Method Summary
 int getActiveCount()
          Gets the number of active pool resources.
 int getIdleCount()
          Gets the number of idle pool resources.
 
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
 

Field Detail

UNKNOWN_COUNT

public static final int UNKNOWN_COUNT
Return value for getActiveCount() and getIdleCount() when pool metrics are unknown or unknowable.

See Also:
Constant Field Values
Constructor Detail

PoolStatus

public PoolStatus(StatusCode code,
                  String desc,
                  int active,
                  int idle)
Creates a new status object with the given code.

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

getIdleCount

public int getIdleCount()
Gets the number of idle pool resources.

Returns:
Number of idle pool members.

getActiveCount

public int getActiveCount()
Gets the number of active pool resources.

Returns:
Number of active pool members.


Copyright © 2004-2013 Jasig. All Rights Reserved.