@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, setTimerTaskService
isEnabled, setEnabled
public 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 ConfigurableTask
getCurrentConfiguration
in class AbstractConfigurableTimerTask
public void initialize()
Initializable
initialize
in interface Initializable
public void setNewConfiguration(Form form)
setNewConfiguration
in interface ConfigurableTask
setNewConfiguration
in class AbstractConfigurableTimerTask
public void setThreshold(Float threshold)
protected void run()
run
in class AbstractConfigurableTimerTask
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.