public class DBReceiver extends Receiver implements Pauseable, org.apache.log4j.xml.UnrecognizedElementHandler
thresholdLevel
active, name
repository
Constructor and Description |
---|
DBReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
ConnectionSource |
getConnectionSource() |
int |
getRefreshMillis() |
boolean |
isPaused()
Get paused state.
|
boolean |
parseUnrecognizedElement(Element element,
Properties props) |
void |
setConnectionSource(ConnectionSource connectionSource) |
void |
setPaused(boolean paused)
Set paused state.
|
void |
setRefreshMillis(int refreshMillis) |
void |
shutdown()
Call when the plugin should be stopped.
|
doPost, getThreshold, isAsSevereAsThreshold, setThreshold
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getLoggerRepository, getName, isActive, isEquivalent, removePropertyChangeListener, removePropertyChangeListener, setLoggerRepository, setName
getLogger, getNonFloodingLogger, resetErrorCount
public void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
public void setRefreshMillis(int refreshMillis)
public int getRefreshMillis()
public ConnectionSource getConnectionSource()
public void setConnectionSource(ConnectionSource connectionSource)
connectionSource
- The connectionSource to set.public void shutdown()
Plugin
public void setPaused(boolean paused)
Pauseable
public boolean isPaused()
Pauseable
public boolean parseUnrecognizedElement(Element element, Properties props) throws Exception
parseUnrecognizedElement
in interface org.apache.log4j.xml.UnrecognizedElementHandler
Exception
Copyright © 2002-2017 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.