Package tigase.monitor.tasks
Class LoggerTask
java.lang.Object
tigase.monitor.tasks.AbstractConfigurableTask
tigase.monitor.tasks.LoggerTask
- All Implemented Interfaces:
Initializable
,UnregisterAware
,ConfigurableTask
,MonitorTask
@Bean(name="logger-task",
parent=MonitorComponent.class,
active=true)
public class LoggerTask
extends AbstractConfigurableTask
implements Initializable
-
Field Summary
Modifier and TypeFieldDescriptionprotected MonitorComponent
protected static final TimestampHelper
protected EventBus
static final Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
disable()
protected void
enable()
void
Method will be called, when bean will be created, configured and ready to use.void
sendWarningOut
(String logBuff) void
setLevelTreshold
(String levelTreshold) void
setNewConfiguration
(Form form) Methods inherited from class tigase.monitor.tasks.AbstractConfigurableTask
beforeUnregister, isEnabled, setEnabled
-
Field Details
-
log
-
dtf
-
component
-
eventBus
-
-
Constructor Details
-
LoggerTask
public LoggerTask()
-
-
Method Details
-
getCurrentConfiguration
- Specified by:
getCurrentConfiguration
in interfaceConfigurableTask
- Overrides:
getCurrentConfiguration
in classAbstractConfigurableTask
-
getLevelTreshold
-
setLevelTreshold
-
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
-
sendWarningOut
-
setNewConfiguration
- Specified by:
setNewConfiguration
in interfaceConfigurableTask
- Overrides:
setNewConfiguration
in classAbstractConfigurableTask
-
disable
protected void disable()- Overrides:
disable
in classAbstractConfigurableTask
-
enable
protected void enable()- Overrides:
enable
in classAbstractConfigurableTask
-