@Bean(name="memory-checker-task") public class MemoryCheckerTask extends AbstractConfigurableTimerTask implements InfoTask
| Modifier and Type | Field and Description |
|---|---|
static String |
HEAP_MEMORY_MONITOR_EVENT_NAME |
static String |
NONHEAP_MEMORY_MONITOR_EVENT_NAME |
| Constructor and Description |
|---|
MemoryCheckerTask() |
| Modifier and Type | Method and Description |
|---|---|
Form |
getCurrentConfiguration() |
int |
getMaxHeapMemUsagePercentThreshold() |
int |
getMaxNonHeapMemUsagePercentThreshold() |
Form |
getTaskInfo() |
protected void |
run() |
void |
setMaxHeapMemUsagePercentThreshold(Integer maxHeapMemUsagePercentThreshold) |
void |
setMaxNonHeapMemUsagePercentThreshold(Integer maxNonHeapMemUsagePercentThreshold) |
void |
setNewConfiguration(Form form) |
beforeUnregister, disable, enable, getPeriod, getTimerTaskService, setPeriod, setPeriod, setTimerTaskServiceisEnabled, setEnabledpublic static final String HEAP_MEMORY_MONITOR_EVENT_NAME
public static final String NONHEAP_MEMORY_MONITOR_EVENT_NAME
public Form getCurrentConfiguration()
getCurrentConfiguration in interface ConfigurableTaskgetCurrentConfiguration in class AbstractConfigurableTimerTaskpublic int getMaxHeapMemUsagePercentThreshold()
public int getMaxNonHeapMemUsagePercentThreshold()
public Form getTaskInfo()
getTaskInfo in interface InfoTaskprotected void run()
run in class AbstractConfigurableTimerTaskpublic void setMaxHeapMemUsagePercentThreshold(Integer maxHeapMemUsagePercentThreshold)
public void setMaxNonHeapMemUsagePercentThreshold(Integer maxNonHeapMemUsagePercentThreshold)
public void setNewConfiguration(Form form)
setNewConfiguration in interface ConfigurableTasksetNewConfiguration in class AbstractConfigurableTimerTaskCopyright © 2017 "Tigase, Inc.". All rights reserved.