org.jasig.cas.monitor
Class PoolStatus
java.lang.Object
org.jasig.cas.monitor.Status
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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()
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.