public abstract class AbstractPoolMonitor extends AbstractNamedMonitor<PoolStatus>
name| Constructor and Description |
|---|
AbstractPoolMonitor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getName, setNamepublic 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()
Copyright © 2004-2012 Jasig. All Rights Reserved.