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
FieldsModifier and TypeFieldDescriptionprotected MonitorComponentstatic final Stringprotected static final TimestampHelperprotected EventBusprotected float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod will be called, when bean will be created, configured and ready to use.protected voidrun()voidsetNewConfiguration(Form form) voidsetThreshold(Float threshold) Methods inherited from class tigase.monitor.tasks.AbstractConfigurableTimerTask
beforeUnregister, disable, enable, getPeriod, getTimerTaskService, setPeriod, setTimerTaskServiceMethods inherited from class tigase.monitor.tasks.AbstractConfigurableTask
isEnabled, setEnabled
-
Field Details
-
DISK_USAGE_MONITOR_EVENT_NAME
- See Also:
-
dtf
-
component
-
eventBus
-
threshold
-
-
Constructor Details
-
DiskTask
public DiskTask()
-
-
Method Details
-
getCurrentConfiguration
- Specified by:
getCurrentConfigurationin interfaceConfigurableTask- Overrides:
getCurrentConfigurationin classAbstractConfigurableTimerTask
-
initialize
public void initialize()Description copied from interface:InitializableMethod will be called, when bean will be created, configured and ready to use.- Specified by:
initializein interfaceInitializable- Overrides:
initializein classAbstractConfigurableTask
-
setNewConfiguration
- Specified by:
setNewConfigurationin interfaceConfigurableTask- Overrides:
setNewConfigurationin classAbstractConfigurableTimerTask
-
setThreshold
-
run
protected void run()- Specified by:
runin classAbstractConfigurableTimerTask
-