@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, setTimerTaskService
isEnabled, setEnabled
public static final String HEAP_MEMORY_MONITOR_EVENT_NAME
public static final String NONHEAP_MEMORY_MONITOR_EVENT_NAME
public Form getCurrentConfiguration()
getCurrentConfiguration
in interface ConfigurableTask
getCurrentConfiguration
in class AbstractConfigurableTimerTask
public int getMaxHeapMemUsagePercentThreshold()
public int getMaxNonHeapMemUsagePercentThreshold()
public Form getTaskInfo()
getTaskInfo
in interface InfoTask
protected void run()
run
in class AbstractConfigurableTimerTask
public void setMaxHeapMemUsagePercentThreshold(Integer maxHeapMemUsagePercentThreshold)
public void setMaxNonHeapMemUsagePercentThreshold(Integer maxNonHeapMemUsagePercentThreshold)
public void setNewConfiguration(Form form)
setNewConfiguration
in interface ConfigurableTask
setNewConfiguration
in class AbstractConfigurableTimerTask
Copyright © 2017 "Tigase, Inc.". All rights reserved.