@Bean(name="disk-task") 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 DateTimeFormatter |
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() |
protected void |
run() |
void |
setNewConfiguration(Form form) |
void |
setThreshold(Float threshold) |
beforeUnregister, disable, enable, getPeriod, getTimerTaskService, setPeriod, setPeriod, setTimerTaskServiceisEnabled, setEnabledpublic static final String DISK_USAGE_MONITOR_EVENT_NAME
protected static final DateTimeFormatter dtf
@Inject protected MonitorComponent component
protected float threshold
public Form getCurrentConfiguration()
getCurrentConfiguration in interface ConfigurableTaskgetCurrentConfiguration in class AbstractConfigurableTimerTaskpublic void initialize()
initialize in interface Initializableprotected void run()
run in class AbstractConfigurableTimerTaskpublic void setNewConfiguration(Form form)
setNewConfiguration in interface ConfigurableTasksetNewConfiguration in class AbstractConfigurableTimerTaskpublic void setThreshold(Float threshold)
Copyright © 2022 "Tigase, Inc.". All rights reserved.