@Bean(name="logger-task", parent=MonitorComponent.class, active=true) public class LoggerTask extends AbstractConfigurableTask implements Initializable
Modifier and Type | Field and Description |
---|---|
protected MonitorComponent |
component |
protected static TimestampHelper |
dtf |
protected EventBus |
eventBus |
static Logger |
log |
Constructor and Description |
---|
LoggerTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
disable() |
protected void |
enable() |
Form |
getCurrentConfiguration() |
Level |
getLevelTreshold() |
void |
initialize()
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) |
beforeUnregister, isEnabled, setEnabled
public static final Logger log
protected static final TimestampHelper dtf
@Inject protected MonitorComponent component
public Form getCurrentConfiguration()
getCurrentConfiguration
in interface ConfigurableTask
getCurrentConfiguration
in class AbstractConfigurableTask
public Level getLevelTreshold()
public void setLevelTreshold(String levelTreshold)
public void initialize()
Initializable
initialize
in interface Initializable
initialize
in class AbstractConfigurableTask
public void sendWarningOut(String logBuff)
public void setNewConfiguration(Form form)
setNewConfiguration
in interface ConfigurableTask
setNewConfiguration
in class AbstractConfigurableTask
protected void disable()
disable
in class AbstractConfigurableTask
protected void enable()
enable
in class AbstractConfigurableTask
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.