|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.monitor.AbstractNamedMonitor<PoolStatus>
org.jasig.cas.monitor.AbstractPoolMonitor
public abstract class AbstractPoolMonitor
Describes a monitor that observes a pool of resources.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_WAIT
Default maximum wait time for asynchronous pool validation. |
| Fields inherited from class org.jasig.cas.monitor.AbstractNamedMonitor |
|---|
name |
| Constructor Summary | |
|---|---|
AbstractPoolMonitor()
|
|
| Method Summary | |
|---|---|
protected abstract StatusCode |
checkPool()
Performs a health check on a the pool. |
protected abstract int |
getActiveCount()
Gets the number of pool resources active at present. |
protected abstract int |
getIdleCount()
Gets the number of pool resources idle at present. |
PoolStatus |
observe()
Observes the monitored resource and reports the status. |
void |
setExecutor(ExecutorService executorService)
Sets the executor service responsible for pool resource validation. |
void |
setMaxWait(int time)
Set the maximum amount of time wait while validating pool resources. |
| Methods inherited from class org.jasig.cas.monitor.AbstractNamedMonitor |
|---|
getName, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_WAIT
| Constructor Detail |
|---|
public AbstractPoolMonitor()
| Method Detail |
|---|
public void setExecutor(ExecutorService executorService)
executorService - Executor of pool validation operations.public void setMaxWait(int time)
time - Wait time in milliseconds.public PoolStatus observe()
protected abstract StatusCode checkPool()
throws Exception
Exception - Thrown to indicate a serious problem with pool validation.protected abstract int getIdleCount()
protected abstract int getActiveCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||