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