public class MemoryMonitor extends Object implements Monitor<MemoryStatus>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_FREE_MEMORY_WARN_THRESHOLD
Default percent free memory warning threshold.
|
| Constructor and Description |
|---|
MemoryMonitor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final int DEFAULT_FREE_MEMORY_WARN_THRESHOLD
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>Copyright © 2004-2014 Jasig. All Rights Reserved.