|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.monitor.AbstractNamedMonitor<CacheStatus>
org.jasig.cas.monitor.AbstractCacheMonitor
public abstract class AbstractCacheMonitor
Abstract base class for monitors that observe cache storage systems.
| Field Summary | |
|---|---|
static long |
DEFAULT_EVICTION_THRESHOLD
Default eviction threshold is 0. |
static int |
DEFAULT_WARN_FREE_THRESHOLD
Default free capacity threshold is 10%. |
| Fields inherited from class org.jasig.cas.monitor.AbstractNamedMonitor |
|---|
name |
| Constructor Summary | |
|---|---|
AbstractCacheMonitor()
|
|
| Method Summary | |
|---|---|
protected abstract CacheStatistics[] |
getStatistics()
|
CacheStatus |
observe()
Observes the monitored resource and reports the status. |
void |
setEvictionThreshold(long count)
Sets the eviction threshold count above which an error is issued. |
void |
setWarnFreeThreshold(int percent)
Sets the percent free capacity threshold below which a warning is issued. |
protected StatusCode |
status(CacheStatistics statistics)
Computes the status code for a given set of cache statistics. |
| 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_WARN_FREE_THRESHOLD
public static final long DEFAULT_EVICTION_THRESHOLD
| Constructor Detail |
|---|
public AbstractCacheMonitor()
| Method Detail |
|---|
public void setWarnFreeThreshold(int percent)
percent - Warning threshold percent.public void setEvictionThreshold(long count)
count - Threshold for number of cache evictions.public CacheStatus observe()
Monitor
protected abstract CacheStatistics[] getStatistics()
protected StatusCode status(CacheStatistics statistics)
statistics - Cache statistics.
StatusCode.WARN if eviction count is above threshold or if
percent free space is below threshold, otherwise StatusCode.OK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||