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
Fields Modifier and Type Field Description protected MonitorComponentcomponentprotected static TimestampHelperdtfprotected EventBuseventBusstatic java.util.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description LoggerTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddisable()protected voidenable()FormgetCurrentConfiguration()java.util.logging.LevelgetLevelTreshold()voidinitialize()Method will be called, when bean will be created, configured and ready to use.voidsendWarningOut(java.lang.String logBuff)voidsetLevelTreshold(java.lang.String levelTreshold)voidsetNewConfiguration(Form form)-
Methods inherited from class tigase.monitor.tasks.AbstractConfigurableTask
beforeUnregister, isEnabled, setEnabled
-
-
-
-
Field Detail
-
log
public static final java.util.logging.Logger log
-
dtf
protected static final TimestampHelper dtf
-
component
@Inject protected MonitorComponent component
-
-
Method Detail
-
getCurrentConfiguration
public Form getCurrentConfiguration()
- Specified by:
getCurrentConfigurationin interfaceConfigurableTask- Overrides:
getCurrentConfigurationin classAbstractConfigurableTask
-
getLevelTreshold
public java.util.logging.Level getLevelTreshold()
-
setLevelTreshold
public void setLevelTreshold(java.lang.String levelTreshold)
-
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
-
sendWarningOut
public void sendWarningOut(java.lang.String logBuff)
-
setNewConfiguration
public void setNewConfiguration(Form form)
- Specified by:
setNewConfigurationin interfaceConfigurableTask- Overrides:
setNewConfigurationin classAbstractConfigurableTask
-
disable
protected void disable()
- Overrides:
disablein classAbstractConfigurableTask
-
enable
protected void enable()
- Overrides:
enablein classAbstractConfigurableTask
-
-