@Bean(name="disk-task", parent=MonitorComponent.class, active=true) public class DiskTask extends AbstractConfigurableTimerTask implements Initializable
| Modifier and Type | Field and Description |
|---|---|
protected MonitorComponent |
component |
static String |
DISK_USAGE_MONITOR_EVENT_NAME |
protected static TimestampHelper |
dtf |
protected EventBus |
eventBus |
protected float |
threshold |
protected HashSet<String> |
triggeredEvents |
| Constructor and Description |
|---|
DiskTask() |
| Modifier and Type | Method and Description |
|---|---|
Form |
getCurrentConfiguration() |
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
protected void |
run() |
void |
setNewConfiguration(Form form) |
void |
setThreshold(Float threshold) |
beforeUnregister, disable, enable, getPeriod, getTimerTaskService, setPeriod, setTimerTaskServiceisEnabled, setEnabledpublic static final String DISK_USAGE_MONITOR_EVENT_NAME
protected static final TimestampHelper dtf
@Inject protected MonitorComponent component
@ConfigField(desc="Disk usage threshold") protected float threshold
public Form getCurrentConfiguration()
getCurrentConfiguration in interface ConfigurableTaskgetCurrentConfiguration in class AbstractConfigurableTimerTaskpublic void initialize()
Initializableinitialize in interface Initializablepublic void setNewConfiguration(Form form)
setNewConfiguration in interface ConfigurableTasksetNewConfiguration in class AbstractConfigurableTimerTaskpublic void setThreshold(Float threshold)
protected void run()
run in class AbstractConfigurableTimerTaskCopyright © 2004–2019 "Tigase, Inc.". All rights reserved.