Package tigase.monitor.tasks
Class DiskTask
- java.lang.Object
-
- tigase.monitor.tasks.AbstractConfigurableTask
-
- tigase.monitor.tasks.AbstractConfigurableTimerTask
-
- tigase.monitor.tasks.DiskTask
-
- All Implemented Interfaces:
Initializable
,UnregisterAware
,ConfigurableTask
,MonitorTask
@Bean(name="disk-task", parent=MonitorComponent.class, active=true) public class DiskTask extends AbstractConfigurableTimerTask implements Initializable
-
-
Field Summary
Fields Modifier and Type Field Description protected MonitorComponent
component
static java.lang.String
DISK_USAGE_MONITOR_EVENT_NAME
protected static TimestampHelper
dtf
protected EventBus
eventBus
protected float
threshold
-
Constructor Summary
Constructors Constructor Description DiskTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.lang.Float threshold)
-
Methods inherited from class tigase.monitor.tasks.AbstractConfigurableTimerTask
beforeUnregister, disable, enable, getPeriod, getTimerTaskService, setPeriod, setTimerTaskService
-
Methods inherited from class tigase.monitor.tasks.AbstractConfigurableTask
isEnabled, setEnabled
-
-
-
-
Field Detail
-
DISK_USAGE_MONITOR_EVENT_NAME
public static final java.lang.String DISK_USAGE_MONITOR_EVENT_NAME
- See Also:
- Constant Field Values
-
dtf
protected static final TimestampHelper dtf
-
component
@Inject protected MonitorComponent component
-
threshold
@ConfigField(desc="Disk usage threshold") protected float threshold
-
-
Method Detail
-
getCurrentConfiguration
public Form getCurrentConfiguration()
- Specified by:
getCurrentConfiguration
in interfaceConfigurableTask
- Overrides:
getCurrentConfiguration
in classAbstractConfigurableTimerTask
-
initialize
public void initialize()
Description copied from interface:Initializable
Method will be called, when bean will be created, configured and ready to use.- Specified by:
initialize
in interfaceInitializable
- Overrides:
initialize
in classAbstractConfigurableTask
-
setNewConfiguration
public void setNewConfiguration(Form form)
- Specified by:
setNewConfiguration
in interfaceConfigurableTask
- Overrides:
setNewConfiguration
in classAbstractConfigurableTimerTask
-
setThreshold
public void setThreshold(java.lang.Float threshold)
-
run
protected void run()
- Specified by:
run
in classAbstractConfigurableTimerTask
-
-