@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, setEnabledpublic static final Logger log
protected static final TimestampHelper dtf
@Inject protected MonitorComponent component
public Form getCurrentConfiguration()
getCurrentConfiguration in interface ConfigurableTaskgetCurrentConfiguration in class AbstractConfigurableTaskpublic Level getLevelTreshold()
public void setLevelTreshold(String levelTreshold)
public void initialize()
Initializableinitialize in interface Initializableinitialize in class AbstractConfigurableTaskpublic void sendWarningOut(String logBuff)
public void setNewConfiguration(Form form)
setNewConfiguration in interface ConfigurableTasksetNewConfiguration in class AbstractConfigurableTaskprotected void disable()
disable in class AbstractConfigurableTaskprotected void enable()
enable in class AbstractConfigurableTaskCopyright © 2004–2021 "Tigase, Inc.". All rights reserved.