@Bean(name="load-checker-task", parent=MonitorComponent.class, active=true) public class LoadCheckerTask extends AbstractConfigurableTimerTask implements InfoTask, Initializable
Modifier and Type | Field and Description |
---|---|
static String |
MONITOR_EVENT_NAME |
Constructor and Description |
---|
LoadCheckerTask() |
Modifier and Type | Method and Description |
---|---|
long |
getAverageLoadThreshold() |
Form |
getCurrentConfiguration() |
Form |
getTaskInfo() |
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
protected void |
run() |
void |
setAverageLoadThreshold(Long averageLoadThreshold) |
void |
setNewConfiguration(Form form) |
beforeUnregister, disable, enable, getPeriod, getTimerTaskService, setPeriod, setTimerTaskService
isEnabled, setEnabled
public static final String MONITOR_EVENT_NAME
public long getAverageLoadThreshold()
public void setAverageLoadThreshold(Long averageLoadThreshold)
public Form getCurrentConfiguration()
getCurrentConfiguration
in interface ConfigurableTask
getCurrentConfiguration
in class AbstractConfigurableTimerTask
public Form getTaskInfo()
getTaskInfo
in interface InfoTask
public void initialize()
Initializable
initialize
in interface Initializable
initialize
in class AbstractConfigurableTask
public void setNewConfiguration(Form form)
setNewConfiguration
in interface ConfigurableTask
setNewConfiguration
in class AbstractConfigurableTimerTask
protected void run()
run
in class AbstractConfigurableTimerTask
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.