|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.monitor.MemoryMonitor
public class MemoryMonitor
Monitors JVM memory usage.
| Field Summary | |
|---|---|
static int |
DEFAULT_FREE_MEMORY_WARN_THRESHOLD
Default percent free memory warning threshold. |
| Constructor Summary | |
|---|---|
MemoryMonitor()
|
|
| Method Summary | |
|---|---|
String |
getName()
Gets the name of the monitor. |
MemoryStatus |
observe()
Observes the monitored resource and reports the status. |
void |
setFreeMemoryWarnThreshold(long threshold)
Sets the percent of free memory below which a warning is reported. |
| 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_FREE_MEMORY_WARN_THRESHOLD
| Constructor Detail |
|---|
public MemoryMonitor()
| Method Detail |
|---|
public void setFreeMemoryWarnThreshold(long threshold)
threshold - Percent free memory warning threshold.public String getName()
getName in interface Monitor<MemoryStatus>public MemoryStatus observe()
observe in interface Monitor<MemoryStatus>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||