@Bean(name="cpu-temp-task", parent=MonitorComponent.class, active=true) public class CpuTempTask extends AbstractConfigurableTimerTask implements Initializable
| Modifier and Type | Field and Description |
|---|---|
static String |
CPU_TEMP_MONITOR_EVENT_NAME |
| Constructor and Description |
|---|
CpuTempTask() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCpuTempThreshold() |
Form |
getCurrentConfiguration() |
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
protected void |
run() |
void |
setCpuTempThreshold(Integer cpuTempThreshold) |
void |
setNewConfiguration(Form form) |
beforeUnregister, disable, enable, getPeriod, getTimerTaskService, setPeriod, setTimerTaskServiceisEnabled, setEnabledpublic static final String CPU_TEMP_MONITOR_EVENT_NAME
public int getCpuTempThreshold()
public void setCpuTempThreshold(Integer cpuTempThreshold)
public Form getCurrentConfiguration()
getCurrentConfiguration in interface ConfigurableTaskgetCurrentConfiguration in class AbstractConfigurableTimerTaskpublic void initialize()
Initializableinitialize in interface Initializableinitialize in class AbstractConfigurableTaskpublic void setNewConfiguration(Form form)
setNewConfiguration in interface ConfigurableTasksetNewConfiguration in class AbstractConfigurableTimerTaskprotected void run()
run in class AbstractConfigurableTimerTaskCopyright © 2004–2021 "Tigase, Inc.". All rights reserved.